Commit 5d97ea29 authored by Allison Karlitskaya's avatar Allison Karlitskaya

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.
parent 983a717f
......@@ -4,5 +4,5 @@ Name: GModule Uninstalled
Description: Dynamic module loader for GLib, Not Installed
Requires: glib-2.0-uninstalled
Version: @VERSION@
Libs: @G_MODULE_LDFLAGS@ ${pc_top_builddir}/${pcfiledir}/gmodule/libgmodule-2.0.la
Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@/gmodule
Libs: @G_MODULE_LDFLAGS@ ${pc_top_builddir}/${pcfiledir}/gmodule/libgmodule-2.0.la @G_THREAD_LIBS@
Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@/gmodule @G_THREAD_CFLAGS@
......@@ -9,6 +9,6 @@ Name: GModule
Description: Dynamic module loader for GLib
Requires: glib-2.0
Version: @VERSION@
Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0
Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0 @G_THREAD_LIBS@
Libs.private: @G_MODULE_LIBS@
Cflags:
Cflags: @G_THREAD_CFLAGS@
......@@ -9,6 +9,6 @@ Name: GModule
Description: Dynamic module loader for GLib
Requires: glib-2.0
Version: @VERSION@
Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0
Libs: -L${libdir} @G_MODULE_LDFLAGS@ -lgmodule-2.0 @G_THREAD_LIBS@
Libs.private: @G_MODULE_LIBS@
Cflags:
Cflags: @G_THREAD_CFLAGS@
......@@ -9,6 +9,6 @@ Name: GModule
Description: Dynamic module loader for GLib
Requires: glib-2.0
Version: @VERSION@
Libs: ${pc_top_builddir}/${pcfiledir}/gmodule/libgmodule-2.0.la
Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@/gmodule
Libs: ${pc_top_builddir}/${pcfiledir}/gmodule/libgmodule-2.0.la @G_THREAD_LIBS@
Cflags: -I${pc_top_builddir}/${pcfiledir}/@srcdir@/gmodule @G_THREAD_CFLAGS@
......@@ -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@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment