summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-09-30 17:57:44 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2010-09-30 18:02:56 -0400
commit6925adbb45889dc5277b1001e4ff33342c8e0821 (patch)
tree3b3bbaf4f51f0c870c27f10598aea5f42b5aca2b
parent7c83a3b9b9082d1850945ec87a6cb8d9b2b6dc51 (diff)
downloadgobject-introspection-6925adbb45889dc5277b1001e4ff33342c8e0821.tar.gz
Add -export-dynamic when compiling with libtool
In some cases (such as introspecting a convenience library), we need to dlsym() modules in the binary we compile, so we need to add -export-dynamic to the link line.
-rw-r--r--giscanner/dumper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index 26ddd7b7..2da95ac2 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -192,6 +192,8 @@ class DumpCompiler(object):
args.append('--silent')
args.extend([self._linker_cmd, '-o', output])
+ if libtool:
+ args.append('-export-dynamic')
cflags = os.environ.get('CFLAGS')
if (cflags):