diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-28 13:39:11 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-28 13:39:11 +0000 |
commit | 21c7e20cb06994bee68ab7053ced688d59fb6908 (patch) | |
tree | c65a01f754b1e9040950c215d46e7a9a28087f02 | |
parent | 960564876c051dfbcd44367fad3865e4b8b53b9b (diff) | |
download | perl-21c7e20cb06994bee68ab7053ced688d59fb6908.tar.gz |
One shouldn't use XBS5_ILP32_OFFBIG_CFLAGS et alia
in AIX is one is doing a 64-bit build.
p4raw-id: //depot/perl@11002
-rw-r--r-- | hints/aix.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 3d6e8d83f4..a85c2139dc 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -266,9 +266,17 @@ EOCBU cat > UU/uselargefiles.cbu <<'EOCBU' case "$uselargefiles" in ''|$define|true|[yY]*) + # Configure should take care of use64bitint and use64bitall being + # defined before uselargefiles.cbu is consulted. + if test X"$use64bitint:$quadtype" = X"$define:long" -o X"$use64bitall" = Xdefine; then +# Keep these at the left margin. +ccflags_uselargefiles="`getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`" +ldflags_uselargefiles="`getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`" + else # Keep these at the left margin. ccflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`" ldflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" + fi # _Somehow_ in AIX 4.3.1.0 the above getconf call manages to # insert(?) *something* to $ldflags so that later (in Configure) evaluating # $ldflags causes a newline after the '-b64' (the result of the getconf). @@ -280,8 +288,13 @@ ldflags_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" # Therefore the line re-evaluating ldflags_uselargefiles: it seems to fix # the whatever it was that AIX managed to break. --jhi ldflags_uselargefiles="`echo $ldflags_uselargefiles`" + if test X"$use64bitint:$quadtype" = X"$define:long" -o X"$use64bitall" = Xdefine; then +# Keep this at the left margin. +libswanted_uselargefiles="`getconf XBS5_LP64_OFF64_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" + else # Keep this at the left margin. libswanted_uselargefiles="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" + fi case "$ccflags_uselargefiles$ldflags_uselargefiles$libs_uselargefiles" in '');; *) ccflags="$ccflags $ccflags_uselargefiles" |