25cfba530a
OBS-URL: https://build.opensuse.org/request/show/49620 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gobject-introspection?expand=0&rev=30
24 lines
781 B
Diff
24 lines
781 B
Diff
commit 6925adbb45889dc5277b1001e4ff33342c8e0821
|
|
Author: Owen W. Taylor <otaylor@fishsoup.net>
|
|
Date: Thu Sep 30 17:57:44 2010 -0400
|
|
|
|
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.
|
|
|
|
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
|
|
index 26ddd7b..2da95ac 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):
|