diff options
author | Colin Walters <walters@verbum.org> | 2010-10-20 10:42:17 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-11-11 17:12:53 -0500 |
commit | 19040edfd027b86ac60139557cc5dee5dbd7fc04 (patch) | |
tree | 3f9cb80eef2a20f8259d497b02a340a6162da6d0 /giscanner/scannermain.py | |
parent | 57ef2d4fe73c5cdf8500c5761c700638943d1c7d (diff) | |
download | gobject-introspection-19040edfd027b86ac60139557cc5dee5dbd7fc04.tar.gz |
dumper: Differentiate between "external" and "internal" linking
The previous commit aea515709 broke scanning for libraries not
in the current directory, such as scanning Gio from gobject-introspection.
In this case, it's wrong to add -L., and to move the other -L behind
the library. Instead, we should just do a "normal" link using
pkg-config --libs with few games.
https://bugzilla.gnome.org/show_bug.cgi?id=632701
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index dd186435..79d85c55 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -90,6 +90,9 @@ def _get_option_parser(): parser.add_option("", "--no-libtool", action="store_true", dest="nolibtool", default=False, help="do not use libtool") + parser.add_option("", "--external-library", + action="store_true", dest="external_library", default=False, + help="If true, the library is located on the system, not in the current directory") parser.add_option("-l", "--library", action="append", dest="libraries", default=[], help="libraries of this unit") |