Accepting request 49620 from home:vuntz:branches:GNOME:Factory

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
This commit is contained in:
Vincent Untz 2010-10-01 12:07:41 +00:00 committed by Git OBS Bridge
parent f058789fa0
commit 25cfba530a
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,23 @@
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):

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Oct 1 13:48:51 CEST 2010 - vuntz@opensuse.org
- Add gobject-introspection-export-dynamic.patch: this fixes the
build of some gir, like in clutter.
-------------------------------------------------------------------
Fri Oct 1 09:10:36 CEST 2010 - vuntz@opensuse.org

View File

@ -31,6 +31,8 @@ Source: %{name}-%{version}.tar.bz2
Patch0: gobject-introspection-keyring-workaround.patch
# PATCH-FIX-UPSTREAM gobject-introspection-libgda-workaround.patch bgo#629779 vuntz@opensuse.org -- Workaround for libgda
Patch1: gobject-introspection-libgda-workaround.patch
# PATCH-FIX-UPSTREAM gobject-introspection-export-dynamic.patch vuntz@opensuse.org -- Taken from upstream, to fix builds of various gir
Patch2: gobject-introspection-export-dynamic.patch
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
@ -73,6 +75,7 @@ a uniform, machine readable format.
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
%configure \