[PATCH] fix linking with glib

Stanislav Brabec sbrabec at suse.cz
Wed Nov 23 18:35:59 UTC 2011


nspluginwrapper explicitly uses gthread API but does not explicitly
request gthread library. It works with the latest GTK+ GLib, but does
noz work with older versions, where gthread is not included implicitly.

--- a/nspluginwrapper/configure
+++ b/nspluginwrapper/configure
@@ -499,8 +499,8 @@ fi
 
 # check for Glib 2.0 compile CFLAGS
 if $pkgconfig --exists glib-2.0; then
-    GLIB_CFLAGS=`$pkgconfig --cflags glib-2.0`
-    GLIB_LIBS=`$pkgconfig --libs glib-2.0`
+    GLIB_CFLAGS=`$pkgconfig --cflags glib-2.0 gthread-2.0`
+    GLIB_LIBS=`$pkgconfig --libs glib-2.0 gthread-2.0`
     GLIB_VERSION=`$pkgconfig --modversion glib-2.0`
 else
     echo "GLIB 2.0 environment not found"

-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                          e-mail: sbrabec at suse.cz
Lihovarská 1060/12                            tel: +49 911 7405384547
190 00 Praha 9                                  fax: +420 284 028 951
Czech Republic                                    http://www.suse.cz/




More information about the Nspluginwrapper-devel-list mailing list