summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/aix.sh9
-rwxr-xr-xhints/aix_4.sh6
2 files changed, 10 insertions, 5 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 386da4d269..29f2bdc758 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -39,10 +39,10 @@ case "$usemymalloc" in
'') usemymalloc='n' ;;
esac
-# malloc wrap works
+# malloc wrap works, but not in vac-5, see later
case "$usemallocwrap" in
-'') usemallocwrap='define' ;;
-esac
+ '') usemallocwrap='define' ;;
+ esac
# Intuiting the existence of system calls under AIX is difficult,
# at best; the safest technique is to find them empirically.
@@ -143,6 +143,9 @@ case "$cc" in
ccversion=`echo "$ccversion" | awk '{print $2}'`
# Redbooks state AIX-5 only supports vac-5.0.2.0 and up
+ case "$ccversion" in
+ 5*) usemallocwrap='n' ;; # panic in miniperl
+ esac
;;
esac
diff --git a/hints/aix_4.sh b/hints/aix_4.sh
index c1a6742bf1..35ae781883 100755
--- a/hints/aix_4.sh
+++ b/hints/aix_4.sh
@@ -111,8 +111,7 @@ cc=${cc:-cc}
ccflags="$ccflags -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE"
case "$cc" in
*gcc*) ;;
- *) ccflags="$ccflags -qmaxmem=-1 -qnoansialias"
- usemallocwrap='n' ;;
+ *) ccflags="$ccflags -qmaxmem=-1 -qnoansialias" ;;
esac
nm_opt='-B'
@@ -205,6 +204,9 @@ EOF
regcomp_cflags='optimize='
;;
esac
+ case "$ccversion" in
+ 5*) usemallocwrap='n' ;; # causes panic in miniperl
+ esac
esac
# the required -bE:$installarchlib/CORE/perl.exp is added by
# libperl.U (Configure) later.