Missing "Wl,--export-dynamic" when using pkgconfig
Bug #16586 reported by
Wilfried Horn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libglade2 (Ubuntu) |
Invalid
|
Medium
|
Adam Conrad |
Bug Description
When linking a programm using "pkg-config libglade-2.0 --libs" the parameters
"Wl,--export-
doesn't find signal handlers given in the main source file.
To post a comment you must log in.
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 signal_ autoconnect( ) function.
the glade_xml_
This issue has been noted in the libglade reference manual throughout the 2.0 developer. gnome.org/ doc/API/ 2.0/libglade/ libglade- notes.html
series:
http://
(towards the end of the page)
This problem seems to have been coming up recently because the "gtk+-2.0" noexport- 2.0"
pkg-config module installed by gtk+-2.6 now depends on "gmodule-
(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.