diff --git a/gobject-introspection-export-dynamic.patch b/gobject-introspection-export-dynamic.patch new file mode 100644 index 0000000..24a7269 --- /dev/null +++ b/gobject-introspection-export-dynamic.patch @@ -0,0 +1,23 @@ +commit 6925adbb45889dc5277b1001e4ff33342c8e0821 +Author: Owen W. Taylor +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): diff --git a/gobject-introspection.changes b/gobject-introspection.changes index 3f2f1a8..98bdfdb 100644 --- a/gobject-introspection.changes +++ b/gobject-introspection.changes @@ -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 diff --git a/gobject-introspection.spec b/gobject-introspection.spec index c65c21f..543e82e 100644 --- a/gobject-introspection.spec +++ b/gobject-introspection.spec @@ -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 \