summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-11-11 23:17:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-11-11 23:17:43 +0000
commit6b8eaf932222db04db65aff99717b9c1dbd0a692 (patch)
treee3c8fcc891d8978d35f507c9ed8927f49653fa72 /hints/hpux.sh
parent9f2f8d047dcc7d10b832be2cce8b61f4353e10c6 (diff)
downloadperl-6b8eaf932222db04db65aff99717b9c1dbd0a692.tar.gz
Turn on largefileness always if available and
continue 64-bit fixes. p4raw-id: //depot/cfgperl@4552
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index add4410cd5..681a722cb7 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -290,6 +290,21 @@ EOM
esac
EOCBU
+# Turn on largefileness if available.
+ lfcflags="`getconf _CS_XBS5_ILP32_OFFBIG_CFLAGS 2>/dev/null`"
+ lfldflags="`getconf _CS_XBS5_ILP32_OFFBIG_LDFLAGS 2>/dev/null`"
+ lflibs="`getconf _CS_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'
@@ -311,7 +326,7 @@ Cannot continue, aborting.
EOM
exit 1
fi
- ccflags="$ccflags +DD64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
+ ccflags="$ccflags +DD64"
ldflags="$ldflags +DD64"
ld=/usr/bin/ld
set `echo " $libswanted " | sed -e 's@ dl @ @'`
@@ -319,3 +334,6 @@ EOM
glibpth="/lib/pa20_64"
esac
EOCBU
+
+
+