[commit: ghc] wip/ghc710-aix: Set `THREAD_SAFE` CPP macro for AIX (9b987c3)

git at git.haskell.org git at git.haskell.org
Tue Nov 17 22:29:14 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/ghc710-aix
Link       : http://ghc.haskell.org/trac/ghc/changeset/9b987c3f929c80e0bf8d5bc2f7f41fa26b9ea9c3/ghc

>---------------------------------------------------------------

commit 9b987c3f929c80e0bf8d5bc2f7f41fa26b9ea9c3
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Tue Nov 17 23:25:03 2015 +0100

    Set `THREAD_SAFE` CPP macro for AIX
    
    The most important effect of this macro is unlocking a thread-safe
    `errno` which is essential for the threaded runtime.


>---------------------------------------------------------------

9b987c3f929c80e0bf8d5bc2f7f41fa26b9ea9c3
 aclocal.m4 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 67692e3..65ee2cd 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -588,8 +588,9 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
         ;;
 
     powerpc-ibm-aix*)
-        $2="$$2 -mminimal-toc"
-        $3="$$3 -mminimal-toc"
+        $2="$$2 -mminimal-toc -D_THREAD_SAFE"
+        $3="$$3 -mminimal-toc -D_THREAD_SAFE"
+        $5="$$5 -D_THREAD_SAFE"
         ;;
 
     esac



More information about the ghc-commits mailing list