[mingw-glib2: 37/68] Let binaries depending on GLib link against the libintl wrapper library in a way that libtool doesn'

epienbro epienbro at fedoraproject.org
Tue Mar 6 19:54:58 UTC 2012


commit a6da1d27e50787bb1495873ba554d31154801cc9
Author: Erik van Pienbroek <epienbro at fedoraproject.org>
Date:   Sun Oct 17 01:43:30 2010 +0200

    Let binaries depending on GLib link against the libintl wrapper library in a way that libtool doesn't refuse

 mingw32-glib2.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/mingw32-glib2.spec b/mingw32-glib2.spec
index 5b97a64..ef7de51 100644
--- a/mingw32-glib2.spec
+++ b/mingw32-glib2.spec
@@ -7,7 +7,7 @@
 
 Name:           mingw32-glib2
 Version:        2.26.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        MinGW Windows GLib2 library
 
 License:        LGPLv2+
@@ -133,6 +133,13 @@ rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
 # Bash-completion files aren't interesting for mingw32
 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/bash_completion.d
 
+# The libtool files refer to libintl while they shouldn't
+# Drop this reference manually
+find $RPM_BUILD_ROOT -name \*.la -exec sed -i s@' -lintl'@@ {} \;
+
+# Let binaries depending on GLib link against the libintl wrapper library in a way that libtool doesn't refuse
+sed -i s at inherited_linker_flags=''@inherited_linker_flags='-Wl,%{_mingw32_libdir}/libintl.a -Wl,--exclude-libs=libintl.a'@ $RPM_BUILD_ROOT%{_mingw32_libdir}/libglib-2.0.la
+
 %find_lang glib20
 
 
@@ -198,6 +205,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Oct 17 2010 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.0-3
+- Let binaries depending on GLib link against the libintl wrapper library
+  in a way that libtool doesn't refuse
+
 * Sat Oct 16 2010 Erik van Pienbroek <epienbro at fedoraproject.org> - 2.26.0-2
 - Rebuild in order to make libintl-8.dll a soft dependency
 


More information about the mingw mailing list