summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-05-02 00:52:42 -0700
committerRobert Ancell <robert.ancell@canonical.com>2013-05-02 09:33:53 -0700
commitb055ddb89da79b5ae22c37ec79ab5009d7db4603 (patch)
treecf7d1b9bd81de372384aea2a19da732d711cf2c0
parent863ceb7f5a5b5f6accfea23dcd47b5c74a53f68b (diff)
downloadgobject-introspection-b055ddb89da79b5ae22c37ec79ab5009d7db4603.tar.gz
Fix scanning libraries with no GObjects and linker using --as-needed
https://bugzilla.gnome.org/show_bug.cgi?id=699442
-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