AIX patch for hints/aix.sh:
Jarkko Hietaniemi [Tue, 25 Nov 1997 00:49:52 +0000 (16:49 -0800)]
Subject: Re: _54 on AIX

p4raw-id: //depot/perl@294

hints/aix.sh

index 8869a23..41706ac 100644 (file)
@@ -78,10 +78,10 @@ lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).
 esac
 
 if [ "X$usethreads" != "X" ]; then
-    ccflags="-DUSE_THREADS $ccflags"
-    cppflags="-DUSE_THREADS $cppflags"
+    ccflags="-DUSE_THREADS -DNEED_PTHREAD_INIT $ccflags"
+    cppflags="-DUSE_THREADS -DNEED_PTHREAD_INIT $cppflags"
     case "$cc" in
-    xlc_r)
+    xlc_r | cc_r)
        ;;
     cc | '') 
        cc=xlc_r
@@ -95,7 +95,7 @@ if [ "X$usethreads" != "X" ]; then
            echo >&4 "Unknown C compiler."
            ;;
        esac
-       echo >&4 "You should use the AIX C compiler called xlc_r."
+       echo >&4 "You should use the AIX C compilers called xlc_r or cc_r."
        echo >&4 "Cannot continue, aborting."
        exit 1
        ;;