diff options
author | Colin Walters <walters@verbum.org> | 2009-08-20 18:21:41 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-08-24 14:14:53 -0400 |
commit | bacb23155a5fb370493d0ce2fc438ea6c2982a45 (patch) | |
tree | 685b1598528c1fe9f8e54425205197d84dca1338 /giscanner/scannermain.py | |
parent | 3d4a06e80a46964b2f1a3bfc33403e89022a4163 (diff) | |
download | gobject-introspection-bacb23155a5fb370493d0ce2fc438ea6c2982a45.tar.gz |
LD_LIBRARY_PATH exorcism
Thanks to commit 6d510b8db, we now no longer need LD_LIBRARY_PATH
to be set for invoking the compiler.
Next, before we were taking the LD_LIBRARY_PATH variable and
turning it into a compile path, presumably to attempt to handle
the cases where we weren't getting the right -L flags. Also
interacting with this was a while ago we weren't really doing
uninstalled libtool libraries correctly, which is probably
how hacks involving LD_LIBRARY_PATH crept into the scanner.
Just require that we're passed the right -L flags, and we
should be doing libtool libraries better now.
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 4b742538..d70eed4a 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -247,20 +247,6 @@ def scanner_main(args): _error("Must specify --program or --library") libraries = options.libraries - # FIXME: using LPATH is definitely not portable enough. Using Python's - # find_library for finding our shared libraries is not a portable enough - # 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: - os.environ['LPATH'] = library_path filenames = [] for arg in args: if (arg.endswith('.c') or |