From bf5ca8fdbc3b8fa0e0bb2a3747df640d563e2e84 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand" Date: Wed, 23 Jun 2004 06:56:15 +0000 Subject: [PATCH] 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 --- hints/hpux.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hints/hpux.sh b/hints/hpux.sh index bf74f86..335b3dd 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') -- 2.7.4