Change 16581 by jhi@alpha on 2002/05/13 22:57:51 Subject: Re: perl@16573 From: "H.Merijn Brand" <[EMAIL PROTECTED]> Date: Mon, 13 May 2002 18:30:35 +0200 Message-Id: <[EMAIL PROTECTED]> (gcc 3.0 vs 64-bit hpux hints)
Affected files ... .... //depot/perl/hints/hpux.sh#89 edit Differences ... ==== //depot/perl/hints/hpux.sh#89 (text) ==== Index: perl/hints/hpux.sh --- perl/hints/hpux.sh#88~15906~ Sun Apr 14 07:00:03 2002 +++ perl/hints/hpux.sh Mon May 13 15:57:51 2002 @@ -76,12 +76,17 @@ 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 @@ *) 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='-' End of Patch.