diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 15:41:12 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 17:03:38 -0500 |
commit | c86a5be5521bd275bda7ffb8217853a4b7b91cdc (patch) | |
tree | 365400eb158b3d09fae1a25f14937c3cdde79ff2 /giscanner | |
parent | 4996dbe140889c27702aba155e08d6e77213f98b (diff) | |
download | gobject-introspection-c86a5be5521bd275bda7ffb8217853a4b7b91cdc.tar.gz |
scanner: Accept library filenames
This makes it easier to ensure that the right library is
scanned.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/ccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index 78e3825f..d327c581 100644 --- a/giscanner/ccompiler.py +++ b/giscanner/ccompiler.py @@ -156,7 +156,8 @@ class CCompiler(object): if library != 'm': args.append(library + '.lib') else: - if library.endswith(".la"): # explicitly specified libtool library + # If we get a real filename, just use it as-is + if library.endswith(".la") or os.path.isfile(library): args.append(library) else: args.append('-l' + library) |