diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2018-11-05 15:41:12 -0500 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-11-06 14:51:23 +0100 |
commit | a4cfd0a8e5542e333810bd94091a5176cbc2901a (patch) | |
tree | c61a0aad2ea4b7e1937e449c9072c4c43637e40c | |
parent | 2c4ae87140cc719a7e94a59b421374bbeee898c2 (diff) | |
download | gobject-introspection-a4cfd0a8e5542e333810bd94091a5176cbc2901a.tar.gz |
scanner: Accept library filenames
This makes it easier to ensure that the right library is
scanned.
-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) |