[gobject-introspection] Add -export-dynamic when compiling with libtool
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Add -export-dynamic when compiling with libtool
- Date: Thu, 30 Sep 2010 22:03:24 +0000 (UTC)
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.
giscanner/dumper.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]