After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789850 - gmodule-export-2.0.pc missing ldflags when built with Meson
gmodule-export-2.0.pc missing ldflags when built with Meson
Status: RESOLVED DUPLICATE of bug 788773
Product: glib
Classification: Platform
Component: build
2.54.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-11-03 10:28 UTC by Philip Withnall
Modified: 2017-11-03 20:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2017-11-03 10:28:55 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.
Comment 1 Philip Withnall 2017-11-03 20:25:45 UTC
This is a duplicate of bug #788773.

*** This bug has been marked as a duplicate of bug 788773 ***