Eina: pthread detection fixes
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Nov 2012 20:25:34 +0000 (20:25 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Nov 2012 20:25:34 +0000 (20:25 +0000)
* 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

ChangeLog
m4/common/efl_threads.m4

index 0ab19ac..5915220 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
         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.
index ae29606..b1583ad 100644 (file)
@@ -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