summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-04-13 14:25:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-04-13 14:25:08 +0000
commit5f3774a9b49fbaa1b06fec2cad77079ee509d6ca (patch)
tree532c0f1987725a44c87884d3f02e0d655d8bcd98 /hints
parent39398f3f0ecd7e1d0d9f68b83052e76ea7150b75 (diff)
downloadperl-5f3774a9b49fbaa1b06fec2cad77079ee509d6ca.tar.gz
Be polite about ccdlflags and lddflags, too.
Avoid Perl's malloc only when threaded. p4raw-id: //depot/cfgperl@3257
Diffstat (limited to 'hints')
-rw-r--r--hints/aix.sh28
1 files changed, 15 insertions, 13 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 27f884cd28..7b111ffc5f 100644
--- a/hints/aix.sh
+++ b/hints/aix.sh
@@ -15,11 +15,11 @@
d_setrgid='undef'
d_setruid='undef'
-alignbytes=8
+# Neither do these functions work like Perl expects them to.
+d_setregid='undef'
+d_setreuid='undef'
-case "$usemymalloc" in
-'') usemymalloc='n' ;;
-esac
+alignbytes=8
# Intuiting the existence of system calls under AIX is difficult, at best;
# the safest (and slowest...) technique is to find them empirically.
@@ -50,17 +50,13 @@ case "$osvers" in
;;
esac
-# These functions don't work like Perl expects them to.
-d_setregid='undef'
-d_setreuid='undef'
-
# Changes for dynamic linking by Wayne Scott <wscott@ichips.intel.com>
#
# Tell perl which symbols to export for dynamic linking.
case "$cc" in
-*gcc*) ccdlflags='-Xlinker -bE:perl.exp' ;;
-*) ccdlflags='-bE:perl.exp' ;;
+*gcc*) ccdlflags="$ccdlflags -Xlinker" ;;
esac
+ccdlflags="$ccdlflags -bE:perl.exp"
# The first 3 options would not be needed if dynamic libs. could be linked
# with the compiler instead of ld.
@@ -69,10 +65,10 @@ esac
# symbol: boot_$(EXP) can it be auto-generated?
case "$osvers" in
3*)
- lddlflags='-H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc'
+ lddlflags="$lddlflags -H512 -T512 -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -e _nostart -lc"
;;
*)
- lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc'
+ lddlflags="$lddlflags -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc"
;;
esac
@@ -88,7 +84,7 @@ $define|true|[yY]*)
echo >&4 "Switching cc to xlc_r because of POSIX threads."
cc=xlc_r
;;
- '' | cc_r)
+ '' | cc_r)
cc=xlc_r
;;
*)
@@ -111,6 +107,12 @@ EOM
set `echo X "$libswanted "| sed -e 's/ c / c_r c /'`
shift
libswanted="$*"
+
+ # Perl's malloc doesn't survive threaded AIX.
+ case "$usemymalloc" in
+ '') usemymalloc='n' ;;
+ esac
+
;;
esac
EOCBU