summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-29 20:25:34 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-29 20:25:34 +0000
commitedb4f8151cac816720fbaf3a64c7ddab54c4b4db (patch)
tree962dda5a2775e0d6d2e8e3ebc588e41f9a266d74
parentf04575be724811f68af6808b3fd0ba35b4b20600 (diff)
downloadeina-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--ChangeLog6
-rw-r--r--m4/common/efl_threads.m49
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