From: H.Merijn Brand Date: Tue, 1 May 2001 16:34:06 +0000 (+0200) Subject: Re: Finally got a round tuit X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=781588a5a21bdfbec678303791d7d19fbc68f66b;p=p5sagit%2Fp5-mst-13.2.git Re: Finally got a round tuit Message-Id: <20010501163255.19F2.H.M.BRAND@hccnet.nl> cpp and optimization tweaks for HP-UX. p4raw-id: //depot/perl@9929 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index da481da..5254258 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -83,6 +83,11 @@ case `$cc -v 2>&1`"" in *) ccisgcc='' ccversion=`which cc | xargs what | awk '/Compiler/{print $2}'` ccflags="-Ae $cc_cppflags" + # Needed because cpp does only support -Aa (not -Ae) + cpplast='-' + cppminus='-' + cppstdin='cc -E -Aa -D__STDC_EXT__' + cpprun=$cppstdin case "$d_casti32" in "") d_casti32='undef' ;; esac @@ -201,7 +206,7 @@ case "$ccisgcc" in *) # HP's compiler cannot combine -g and -O case "$optimize" in - "") optimize="-O" ;; + "") optimize="+O2 +Onolimit" ;; *O[3456789]*) optimize=`echo "$optimize" | sed -e 's/O[3-9]/O2/'` ;; esac ld=/usr/bin/ld