i have no idea what has happened here, but older glibs REQUIRe you

g_thread_init andf link to libgthread...
This commit is contained in:
Carsten Haitzler 2013-03-12 09:47:18 +09:00
parent bcfc58f460
commit 3d3cdf0944
2 changed files with 2 additions and 1 deletions

View 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

View 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