diff options
author | Johan Bilien <jobi@via.ecp.fr> | 2008-10-28 19:17:44 +0000 |
---|---|---|
committer | Johan Bilien <jobi@src.gnome.org> | 2008-10-28 19:17:44 +0000 |
commit | eea9270e454efe26376bf4ad3336cc1fd696c35f (patch) | |
tree | 8bc2bcd97c3364ddb3a616ba305f9b6f64832519 /tools | |
parent | 7bb9b62e1e002c4780a484ee63d5cdd6c09cfc9e (diff) | |
download | gobject-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-x | tools/g-ir-scanner | 5 |
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: |