summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-06-23 06:56:15 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-06-23 06:56:15 +0000
commitbf5ca8fdbc3b8fa0e0bb2a3747df640d563e2e84 (patch)
treed32318671db1c32a78faf8bcc34f5aa5c339a509 /hints
parente5c3f8982a1650ad4c25a05c41a9038ce21a512c (diff)
downloadperl-bf5ca8fdbc3b8fa0e0bb2a3747df640d563e2e84.tar.gz
Backward compatibility issues for HP-UX 10.01 and older
Yes, it is still actively used in production environment One more patch expected for toke.c optimization level p4raw-id: //depot/perl@22975
Diffstat (limited to 'hints')
-rw-r--r--hints/hpux.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index bf74f8696f..335b3dd461 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -5,6 +5,8 @@
# Determine the architecture type of this system.
# Keep leading tab below -- Configure Black Magic -- RAM, 03/02/97
xxOsRevMajor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f1`;
+ xxOsRevMinor=`uname -r | sed -e 's/^[^0-9]*//' | cut -d. -f2`;
+ xxOsRev=`expr 100 \* $xxOsRevMajor + $xxOsRevMinor`
if [ "$xxOsRevMajor" -ge 10 ]; then
# This system is running >= 10.x
@@ -137,7 +139,12 @@ case `$cc -v 2>&1`"" in
ccversion=`which cc | xargs what | awk '/Compiler/{print $2}/Itanium/{print $6,$7}'`
case "$ccflags" in
"-Ae "*) ;;
- *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;;
+ *) ccflags="-Ae $cc_cppflags"
+ # +vnocompatwarnings not known in 10.10 and older
+ if [ $xxOsRev -ge 1020 ]; then
+ ccflags="$cc_cppflags -Wl,+vnocompatwarnings"
+ fi
+ ;;
esac
# Needed because cpp does only support -Aa (not -Ae)
cpplast='-'
@@ -397,6 +404,9 @@ case "$ccisgcc" in
esac
## LARGEFILES
+if [ $xxOsRev -lt 1020 ]; then
+ uselargefiles="$undef"
+ fi
#case "$uselargefiles-$ccisgcc" in
# "$define-$define"|'-define')