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:
parent
bcfc58f460
commit
3d3cdf0944
|
@ -1739,7 +1739,7 @@ EFL_ADD_LIBS([ECORE], [-lm])
|
||||||
|
|
||||||
# glib
|
# 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
|
if test "x${have_glib}" = "xno"; then
|
||||||
want_g_main_loop="no"
|
want_g_main_loop="no"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -222,6 +222,7 @@ _ecore_glib_init(void)
|
||||||
_ecore_glib_select_cond = malloc(sizeof(GCond));
|
_ecore_glib_select_cond = malloc(sizeof(GCond));
|
||||||
g_cond_init(_ecore_glib_select_cond);
|
g_cond_init(_ecore_glib_select_cond);
|
||||||
#else
|
#else
|
||||||
|
if (!g_thread_get_initialized()) g_thread_init(NULL);
|
||||||
_ecore_glib_select_lock = g_mutex_new();
|
_ecore_glib_select_lock = g_mutex_new();
|
||||||
_ecore_glib_select_cond = g_cond_new();
|
_ecore_glib_select_cond = g_cond_new();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue