From: H.Merijn Brand Date: Sat, 9 Oct 2004 12:27:39 +0000 (+0000) Subject: Make AIX 5 + gcc work in 64bitall X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0c0f82231532c76a9c20f1dd989b3e879c19a114;p=p5sagit%2Fp5-mst-13.2.git Make AIX 5 + gcc work in 64bitall p4raw-id: //depot/perl@23354 --- diff --git a/hints/aix.sh b/hints/aix.sh index 8a10840..852059d 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -319,7 +319,10 @@ libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@ ldflags="`echo ' '$ldflags | sed -e 's@ -b@ -Wl,-b@g'`" lddlflags="`echo ' '$lddlflags | sed -e 's@ -b@ -Wl,-b@g'`" lddlflags="`echo ' '$lddlflags | sed -e 's@ -G @ -Wl,-G @g'`" - ld='gcc' + case "$use64bitall" in + $define|true|[yY]*) ld="gcc -maix64" ;; + *) ld="gcc" ;; + esac echo >&4 "(using ccflags $ccflags)" echo >&4 "(using ldflags $ldflags)" echo >&4 "(using lddlflags $lddlflags)" @@ -384,6 +387,13 @@ EOM # Remove them. ccflags="`echo $ccflags | sed -e 's@-q32@@'`" ldflags="`echo $ldflags | sed -e 's@-b32@@'`" + case "$cc" in + *gcc*) + ccflags="`echo $ccflags | sed -e 's@-q64@-maix64@'`" + ccflags_uselargefiles="`echo $ccflags_uselargefiles | sed -e 's@-q64@-maix64@'`" + qacflags="`echo $qacflags | sed -e 's@-q64@-maix64@'`" + ;; + esac # Tell archiver to use large format. Unless we remove 'ar' # from 'trylist', the Configure script will just reset it to 'ar' # immediately prior to writing config.sh. This took me hours