GNOME Bugzilla – Bug 125627
Reconsider --export-dynamic in gmodule LDFLAGS
Last modified: 2011-02-18 16:09:33 UTC
While if you use gmodule directly from the app, you probably want the -Wl,--export-dynamic that pkg-config --libs gmodule-2.0 produces, it's a bit dubious (and hurts performance) that every app using Pango or GTK+ gets these flags. Simple thing would be to add a gmodule-no-export-2.0.pc or something like that that Pango, GTK+, etc. would require. This would be a somewhat incompatible change to GTK+, but probably OK to sneak in in 2.4. or 2.6.
2004-11-16 Matthias Clasen <mclasen@redhat.com> * m4macros/glib-2.0.m4 (AM_PATH_GLIB_2_0): Support gmodule-no-export. * Makefile.am (EXTRA_DIST): * configure.in (AC_CONFIG_FILES): Add gmodule-no-export-2.0.pc.in * gmodule-no-export-2.0.pc.in: Add a variants of gmodule-2.0.pc.in which doesn't add -Wl,--export-dynamic, since Pango or GTK+ don't need it. (#125627, Owen Taylor)