Comment 1 for bug 16586

Revision history for this message
James Henstridge (jamesh) wrote :

There are a number of reasons not to include this in the "pkg-config --libs" output:

1. If you're linking a library, and are trying to reduce the exported symbols
(for ABI compatibility reasons, speeding up linking, etc), passing
--export-dynamic will cause all symbols to be exported, contrary to any linker
map files.

2. Not all libglade programs need it. It is only necessary if the program uses
the glade_xml_signal_autoconnect() function.

This issue has been noted in the libglade reference manual throughout the 2.0
series:
  http://developer.gnome.org/doc/API/2.0/libglade/libglade-notes.html
(towards the end of the page)

This problem seems to have been coming up recently because the "gtk+-2.0"
pkg-config module installed by gtk+-2.6 now depends on "gmodule-noexport-2.0"
(which doesn't include --export-dynamic in the link flags) rather than
"gmodule-2.0", like previous versions did.

Affected applications can be fixed by doing one of:
 1. add "gmodule-2.0" to the list of pkg-config modules they link against.
 2. if using libtool, pass "-export-dynamic" as a link flag.