i have no idea what has happened here, but older glibs REQUIRe you
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 12 Mar 2013 00:47:18 +0000 (09:47 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 12 Mar 2013 06:30:02 +0000 (15:30 +0900)
g_thread_init andf link to libgthread...

configure.ac
src/lib/ecore/ecore_glib.c

index 01ee53dfaae61ac9f214c503909156d4b697fa5a..ef0c9d89dd1c99bbe9bb92ae89b7948c6362aa17 100644 (file)
@@ -1739,7 +1739,7 @@ EFL_ADD_LIBS([ECORE], [-lm])
 
 # glib
 
-EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_glib}], [GLIB], [glib-2.0])
+EFL_OPTIONAL_DEPEND_PKG([ECORE], [${want_glib}], [GLIB], [glib-2.0 gthread-2.0])
 if test "x${have_glib}" = "xno"; then
    want_g_main_loop="no"
 fi
index 1a4dd55bfaa05276323faefb4efff41e8d793fac..813f998d69cdf54b9d0ad738edaf43bc0226240f 100644 (file)
@@ -222,6 +222,7 @@ _ecore_glib_init(void)
    _ecore_glib_select_cond = malloc(sizeof(GCond));
    g_cond_init(_ecore_glib_select_cond);
 #else
+   if (!g_thread_get_initialized()) g_thread_init(NULL);
    _ecore_glib_select_lock = g_mutex_new();
    _ecore_glib_select_cond = g_cond_new();
 #endif