From edb4f8151cac816720fbaf3a64c7ddab54c4b4db Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Thu, 29 Nov 2012 20:25:34 +0000 Subject: 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. SVN revision: 79852 --- ChangeLog | 6 ++++++ m4/common/efl_threads.m4 | 9 ++------- 2 files changed, 8 insertions(+), 7 deletions(-) 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 -- cgit v1.2.1