From: caro Date: Thu, 29 Nov 2012 20:25:34 +0000 (+0000) Subject: Eina: pthread detection fixes X-Git-Tag: accepted/2.0alpha-wayland/20121219.185837~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85a34802c268c5ed9d13f12a1df7f84c3712e0f3;p=profile%2Fivi%2Feina.git Eina: pthread detection fixes * Do not use -pthread anymore, but instead pass _REENTRANT to the preprocessor and -lpthread to the linker. * On Solaris OS, -mt is passed by default and same flags than linux must be passed. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/branches/eina-1.7@79852 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index 0ab19ac..5915220 100644 --- a/ChangeLog +++ b/ChangeLog @@ -358,3 +358,9 @@ 1.7.2 release +2012-11-29 Vincent Torri + + * Do not use -pthread anymore, but instead pass _REENTRANT to the + preprocessor and -lpthread to the linker. + * On Solaris OS, -mt is passed by default and same flags than + linux must be passed. diff --git a/m4/common/efl_threads.m4 b/m4/common/efl_threads.m4 index ae29606..b1583ad 100644 --- a/m4/common/efl_threads.m4 +++ b/m4/common/efl_threads.m4 @@ -27,15 +27,10 @@ case "$host_os" in AC_DEFINE([EFL_HAVE_WIN32_THREADS], [1], [Define to mention that Win32 threads are supported]) AC_DEFINE([EFL_HAVE_THREADS], [1], [Define to mention that POSIX or Win32 threads are supported]) ;; - solaris*) - _efl_enable_posix_threads="yes" - _efl_threads_cflags="-mt" - _efl_threads_libs="-mt" - ;; *) _efl_enable_posix_threads="yes" - _efl_threads_cflags="-pthread" - _efl_threads_libs="-pthread" + _efl_threads_cflags="-D_REENTRANT" + _efl_threads_libs="-lpthread" ;; esac