GNOME Bugzilla – Bug 536744
Must link to libdl if dladdr() is used
Last modified: 2008-06-05 10:12:45 UTC
Hi, current pre-release fails to build when --as-needed is used and dladdr() is available. This is caused by AC_CHECK_LIB not appending -ldl to LIBS. Attached patch fixes this, no idea why it worked before :)
Created attachment 112189 [details] [review] link-dl.diff
2008-06-05 Sebastian Dröge <slomo@circular-chaos.org> * configure.ac: Explicitely link with -ldl if dladdr() is found there. Before it was implicitely linked by the gmodule pkgconfig file but in glib 2.17.0 -ldl has moved from Libs to Libs.private. Fixes bug #536744.