summaryrefslogtreecommitdiff
path: root/giscanner/dumper.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/dumper.py')
-rw-r--r--giscanner/dumper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 1ef1f4bf..992eb76f 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -319,6 +319,10 @@ class DumpCompiler(object):
else:
args.append('-Wl,-rpath=.')
+ # Ensure libraries are always linked as we are going to use ldd to work out their names later
+ if not libtool and self._pkgconfig_msvc_flags == '':
+ args.append('-Wl,--no-as-needed')
+
for library in self._options.libraries:
# Visual C++: We have the needed .lib files now, and we need to link
# to .lib files, not the .dll as the --library option specifies the