diff options
author | Colin Walters <walters@verbum.org> | 2010-10-04 16:16:35 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-10-19 08:47:24 -0400 |
commit | aea515709e0b608d6fa7c7de4dd555b8ac034969 (patch) | |
tree | 99ee9a819c729fa1a0dd5988441a5d3895c89a9c /giscanner/scannermain.py | |
parent | 2e8e7530fc66b3222525a236a395b8d24eecf404 (diff) | |
download | gobject-introspection-aea515709e0b608d6fa7c7de4dd555b8ac034969.tar.gz |
scanner: Don't process pkg-config libs twice
Before, we were adding the --libs-only-L from pkg-config files
during initial scanning, as if --library-path was specified,
*and* inside the dumper, we used --libs.
Fix this by always doing -L. <introspected libraries> <pkg-config libs>
This should ensure we don't duplicate the search path anyways.
https://bugzilla.gnome.org/show_bug.cgi?id=631348
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 259a5ee4..fc52715f 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -215,16 +215,6 @@ def process_packages(options, packages): options.cpp_defines.extend(pkg_options.cpp_defines) options.cpp_undefines.extend(pkg_options.cpp_undefines) - args = ['pkg-config', '--libs-only-L'] - args.extend(packages) - output = subprocess.Popen(args, - stdout=subprocess.PIPE).communicate()[0] - if output is None: - return 1 - filtered_output = list(process_options(output, options_whitelist)) - pkg_options, unused = parser.parse_args(filtered_output) - options.library_paths.extend(pkg_options.library_paths) - def extract_filenames(args): filenames = [] for arg in args: |