summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-10-09 12:27:39 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-10-09 12:27:39 +0000
commit0c0f82231532c76a9c20f1dd989b3e879c19a114 (patch)
tree85c9ca12b73ceb3d6161136bf3514243f85a147c
parentaf8e01f26a6bc94de18e21a252964d57ac91474c (diff)
downloadperl-0c0f82231532c76a9c20f1dd989b3e879c19a114.tar.gz
Make AIX 5 + gcc work in 64bitall
p4raw-id: //depot/perl@23354
-rw-r--r--hints/aix.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/hints/aix.sh b/hints/aix.sh
index 8a10840b59..852059d813 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