diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2012-11-29 20:25:34 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2012-11-29 20:25:34 +0000 |
commit | edb4f8151cac816720fbaf3a64c7ddab54c4b4db (patch) | |
tree | 962dda5a2775e0d6d2e8e3ebc588e41f9a266d74 | |
parent | f04575be724811f68af6808b3fd0ba35b4b20600 (diff) | |
download | eina-edb4f8151cac816720fbaf3a64c7ddab54c4b4db.tar.gz |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | m4/common/efl_threads.m4 | 9 |
2 files changed, 8 insertions, 7 deletions
@@ -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 |