X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Faix.sh;h=2f19f1cebbaded8d3972d3d7cf243358877de2b0;hb=973abda3de19f81f0355443e0fb0b20961973762;hp=cf7e43cce73203b4ec38e7721af54f25c30a329e;hpb=22d4bb9ccb8701e68f9243547d7e3a3c55f70908;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/aix.sh b/hints/aix.sh index cf7e43c..2f19f1c 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -130,9 +130,45 @@ case "$cc" in *gcc*) ccdlflags='-Xlinker' ;; *) ccversion=`lslpp -L | grep 'C for AIX Compiler$' | awk '{print $2}'` case "$ccversion" in + '') ccversion=`lslpp -L | grep 'IBM C and C++ Compilers LUM$' | awk '{print $2}'` + ;; + esac + case "$ccversion" in + 3.6.6.0) + optimize='none' + ;; 4.4.0.0|4.4.0.1|4.4.0.2) - echo >&4 "*** This C compiler ($ccversion) is outdated." - echo >&4 "*** Please upgrade to at least 4.4.0.3." + cat >&4 <&4 <&4 < "... c bind ..." + set `echo X "$libswanted "| sed -e 's/ bind\( .*\) \([cC]\) / \1 \2 bind /'` + shift + libswanted="$*" + ;; + esac + ;; + esac # This script UU/usethreads.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use threads. @@ -346,13 +396,13 @@ EOM ar="ar -X64" nm_opt="-X64 $nm_opt" # Note: Placing the 'qacflags' variable into the 'ldflags' string - # is NOT a typo. ldqalags is passed to the C compiler for final + # is NOT a typo. ldflags is passed to the C compiler for final # linking, and it wants -q64 (-b64 is for ld only!). case "$qacflags$qaldflags$qalibs" in '');; *) ccflags="$ccflags $qacflags" ldflags="$ldflags $qacflags" - lddqalags="$qaldflags $lddqalags" + lddlflags="$qaldflags $lddlflags" libswanted="$libswanted $qalibs" ;; esac