BugĀ 600141 - Add -pthread to gmodule pkg-config
authorRyan Lortie <desrt@desrt.ca>
Wed, 18 Nov 2009 02:41:48 +0000 (20:41 -0600)
committerRyan Lortie <desrt@desrt.ca>
Wed, 18 Nov 2009 02:41:48 +0000 (20:41 -0600)
commit5d97ea298672880ee80964c07b9cf31d604c3df9
treea0a53b29c9903e444cc3a2a61590abe3add248de
parent983a717fa6431d67ce9d765c1714f77ecb0b02fa
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.
gmodule-2.0-uninstalled.pc.in
gmodule-2.0.pc.in
gmodule-export-2.0.pc.in
gmodule-no-export-2.0-uninstalled.pc.in
gmodule-no-export-2.0.pc.in