diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-11 23:17:43 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-11-11 23:17:43 +0000 |
commit | 6b8eaf932222db04db65aff99717b9c1dbd0a692 (patch) | |
tree | e3c8fcc891d8978d35f507c9ed8927f49653fa72 /hints/aix.sh | |
parent | 9f2f8d047dcc7d10b832be2cce8b61f4353e10c6 (diff) | |
download | perl-6b8eaf932222db04db65aff99717b9c1dbd0a692.tar.gz |
Turn on largefileness always if available and
continue 64-bit fixes.
p4raw-id: //depot/cfgperl@4552
Diffstat (limited to 'hints/aix.sh')
-rw-r--r-- | hints/aix.sh | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/hints/aix.sh b/hints/aix.sh index 5fd75471d8..d905be1d17 100644 --- a/hints/aix.sh +++ b/hints/aix.sh @@ -180,6 +180,32 @@ EOM esac EOCBU +# Turn on largefileness, if available. + lfcflags="`getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`" + lfldflags="`getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" + # _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). + # (nothing strange shows up in $ldflags even in hexdump; + # so it may be something in the shell, instead?) + # Try it out: just uncomment the below line and rerun Configure: +# echo >&4 "AIX 4.3.1.0 $lfldflags mystery" ; exit 1 + # Just don't ask me how AIX does it, I spent hours wondering. + # Therefore the line re-evaluating lfldflags: it seems to fix + # the whatever it was that AIX managed to break. --jhi + lfldflags="`echo $lfldflags`" + lflibs="`getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g`" +case "$lfcflags$lfldflags$lflibs" in +'');; +*) ccflags="$ccflags $lfcflags" + ldflags="$ldflags $ldldflags" + libswanted="$libswanted $lflibs" + ;; +esac + lfcflags='' + lfldflags='' + lflibs='' + # This script UU/use64bits.cbu will get 'called-back' by Configure # after it has prompted the user for whether to use 64 bits. cat > UU/use64bits.cbu <<'EOCBU' @@ -198,22 +224,6 @@ EOM *-DUSE_LONG_LONG*) ;; *) ccflags="$ccflags -DUSE_LONG_LONG" ;; esac - ccflags="$ccflags `getconf XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`" - - ldflags="$ldflags `getconf XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`" - # _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). - # (nothing strange shows up in $ldflags even in hexdump; - # so it may be something in the shell, instead?) - # Try it out: just uncomment the below line and rerun Configure: -# echo >&4 "AIX 4.3.1.0 $ldflags mystery" ; exit 1 - # Just don't ask me how AIX does it. - # Therefore the line re-evaluating ldflags: it seems to bypass - # the whatever it was that AIX managed to break. --jhi - ldflags="`echo $ldflags`" - - libswanted="$libswanted `getconf XBS5_ILP32_OFFBIG_LIBS 2>/dev/null|sed -e 's@^-l@@' -e 's@ -l@ @g'`" # When a 64-bit cc becomes available $archname64 # may need setting so that $archname gets it attached. ;; |