summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-04-26 17:35:23 +0200
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-04-26 22:20:30 +0000
commit88567e60ed3ba016aaedace3242715b8ab2023f7 (patch)
tree187f9f61aa667dbb4eb7f73eae17417314a441c0 /hints
parent265a12b8a5b81ab4d4d89f8673568d88db526282 (diff)
downloadperl-88567e60ed3ba016aaedace3242715b8ab2023f7.tar.gz
usemallocwrap works on AIX, but not with vac-5
From: "H.Merijn Brand" <h.m.brand@hccnet.nl> Subject: Re: Perl 5.8.4 "panic: memory wrap" in miniperl on AIX 5.1 Message-Id: <20040426152951.A6C4.H.M.BRAND@hccnet.nl> p4raw-id: //depot/perl@22743
Diffstat (limited to 'hints')
-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.