From: Jarkko Hietaniemi Date: Tue, 13 Apr 1999 14:25:08 +0000 (+0000) Subject: Be polite about ccdlflags and lddflags, too. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f3774a9b49fbaa1b06fec2cad77079ee509d6ca;p=p5sagit%2Fp5-mst-13.2.git Be polite about ccdlflags and lddflags, too. Avoid Perl's malloc only when threaded. p4raw-id: //depot/cfgperl@3257 --- diff --git a/hints/aix.sh b/hints/aix.sh index 27f884c..7b111ff 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 # # 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