summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohan Bilien <jobi@via.ecp.fr>2008-10-28 19:17:44 +0000
committerJohan Bilien <jobi@src.gnome.org>2008-10-28 19:17:44 +0000
commiteea9270e454efe26376bf4ad3336cc1fd696c35f (patch)
tree8bc2bcd97c3364ddb3a616ba305f9b6f64832519 /tools
parent7bb9b62e1e002c4780a484ee63d5cdd6c09cfc9e (diff)
downloadgobject-introspection-eea9270e454efe26376bf4ad3336cc1fd696c35f.tar.gz
add LD_LIBRARY_PATH to LPATH before calling ld.
2008-10-28 Johan Bilien <jobi@via.ecp.fr> * tools/g-ir-scanner: add LD_LIBRARY_PATH to LPATH before calling ld. svn path=/trunk/; revision=822
Diffstat (limited to 'tools')
-rwxr-xr-xtools/g-ir-scanner5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index f1ad7eb2..e4c1862d 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -228,6 +228,11 @@ def main(args):
# anyway as it behaves differently depending on the OS
lpath = os.environ.get('LPATH')
library_path = ':'.join(options.library_paths)
+
+ ld_library_path = os.environ.get('LD_LIBRARY_PATH')
+ if ld_library_path:
+ library_path = ':'.join([ld_library_path, library_path])
+
if lpath:
os.environ['LPATH'] = ':'.join([lpath, library_path])
else: