GNOME Bugzilla – Bug 789850
gmodule-export-2.0.pc missing ldflags when built with Meson
Last modified: 2017-11-03 20:25:45 UTC
Looks like meson.build doesn’t create and substitute G_MODULE_LDFLAGS like configure.ac does, so gmodule-export-2.0.pc ends up without the all-important -Wl,--export-dynamic flag. Here’s the gmodule-export-2.0.pc file as generated by autotools: prefix=/opt/gnome/install exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include gmodule_supported=true Name: GModule Description: Dynamic module loader for GLib Requires: glib-2.0 Version: 2.55.0 Libs: -L${libdir} -Wl,--export-dynamic -lgmodule-2.0 -pthread Libs.private: -ldl Cflags: -pthread --- And for completeness here’s gmodule-no-export-2.0.pc: prefix=/opt/gnome/install exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include gmodule_supported=true Name: GModule Description: Dynamic module loader for GLib Requires: glib-2.0 Version: 2.55.0 Libs: -L${libdir} -lgmodule-2.0 -pthread Libs.private: -ldl Cflags: -pthread --- Probably best to check through the rest of the .pc files too. Let me know if you need me to provide copies.
This is a duplicate of bug #788773. *** This bug has been marked as a duplicate of bug 788773 ***