AIX hints update from Jarkko
authorGraham Barr <gbarr@pobox.com>
Sun, 28 Mar 1999 17:21:27 +0000 (17:21 +0000)
committerGraham Barr <gbarr@pobox.com>
Sun, 28 Mar 1999 17:21:27 +0000 (17:21 +0000)
p4raw-id: //depot/maint-5.005/perl@3196

hints/aix.sh

index c4fcfc1..d2c45c0 100644 (file)
@@ -81,17 +81,20 @@ case "$usethreads" in
 $define|true|[yY]*)
         ccflags="$ccflags -DNEED_PTHREAD_INIT"
         case "$cc" in
-        xlc_r) ;;
-        cc) 
-           echo >&4 "Switching cc to xlc_r because of POSIX threads."
-           cc=xlc_r
+        cc_r) ;;
+        cc|xlc_r) 
+           echo >&4 "Switching cc to cc_r because of POSIX threads."
+           # xlc_r has been known to produce buggy code in AIX 4.3.2.
+           # (e.g. pragma/overload core dumps)
+           # --jhi@iki.fi
+           cc=cc_r
             ;;
-        '' | cc_r) 
-           cc=xlc_r
+        '') 
+           cc=cc_r
             ;;
         *)
            cat >&4 <<EOM
-For pthreads you should use the AIX C compiler xlc_r.
+For pthreads you should use the AIX C compiler cc_r.
 (now your compiler was '$cc')
 Cannot continue, aborting.
 EOM