summaryrefslogtreecommitdiff
path: root/gmodule-no-export-2.0.pc.in
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2009-11-17 20:41:48 -0600
committerRyan Lortie <desrt@desrt.ca>2009-11-17 20:41:48 -0600
commit5d97ea298672880ee80964c07b9cf31d604c3df9 (patch)
treea0a53b29c9903e444cc3a2a61590abe3add248de /gmodule-no-export-2.0.pc.in
parent983a717fa6431d67ce9d765c1714f77ecb0b02fa (diff)
BugĀ 600141 - Add -pthread to gmodule pkg-config
It is not generally permissible to dlopen() libpthread into a program that is not already linked with threading support. The most common case of this happening is when GIO opens Gvfs (which includes DBus, which links against libpthread). Since gmodule is the way that most users cause this problem for themselves and since the easiest workaround is to link the program with -pthread, the best fix for the issue is to add -pthread to the gmodule pkg-config.
Diffstat (limited to 'gmodule-no-export-2.0.pc.in')
-rw-r--r--gmodule-no-export-2.0.pc.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmodule-no-export-2.0.pc.in b/gmodule-no-export-2.0.pc.in
index 6c4c2318f..3edd98b6d 100644
--- a/gmodule-no-export-2.0.pc.in
+++ b/gmodule-no-export-2.0.pc.in
@@ -9,6 +9,6 @@ Name: GModule
Description: Dynamic module loader for GLib
Requires: glib-2.0
Version: @VERSION@
-Libs: -L${libdir} -lgmodule-2.0
+Libs: -L${libdir} -lgmodule-2.0 @G_THREAD_LIBS@
Libs.private: @G_MODULE_LIBS@
-Cflags:
+Cflags: @G_THREAD_CFLAGS@