diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2002-05-13 20:30:35 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-13 22:57:51 +0000 |
commit | 51d2fe06df83ebdd253a84d143fe4ca4470e0388 (patch) | |
tree | b2e0e68a3800e6720cf40e38ea480a6ad358c188 /hints/hpux.sh | |
parent | cfde3649a26e068bed350de1d915e976bd4084aa (diff) | |
download | perl-51d2fe06df83ebdd253a84d143fe4ca4470e0388.tar.gz |
Re: perl@16573
From: "H.Merijn Brand" <h.m.brand@hccnet.nl>
Message-Id: <20020513182617.5525.H.M.BRAND@hccnet.nl>
(gcc 3.0 vs 64-bit hpux hints)
p4raw-id: //depot/perl@16581
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r-- | hints/hpux.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh index b4c862e1e7..a76c680c3b 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -76,12 +76,17 @@ case `$cc -v 2>&1`"" in ccflags="$cc_cppflags" if [ "X$gccversion" = "X" ]; then # Done too late in Configure if hinted - gccversion=`$cc --version` + gccversion=`$cc --version | sed 's/.*(GCC) *//` fi case "$gccversion" in [012]*) # HP-UX and gcc-2.* break UINT32_MAX :-( ccflags="$ccflags -DUINT32_MAX_BROKEN" ;; + 3*) # GCC (both 32bit and 64bit) will define __STDC_EXT__ + # by default when using GCC 3.0 and newer versions of + # the compiler. + cppflags="$cc_cppflags" + ;; esac case "`getconf KERNEL_BITS 2>/dev/null`" in *64*) @@ -131,9 +136,9 @@ case `$cc -v 2>&1`"" in *) ccisgcc='' ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'` case "$ccflags" in - "-Ae "*) ;; - *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;; - esac + "-Ae "*) ;; + *) ccflags="-Ae $cc_cppflags -Wl,+vnocompatwarnings" ;; + esac # Needed because cpp does only support -Aa (not -Ae) cpplast='-' cppminus='-' |