summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/ccompiler.py3
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)