Re: Finally got a round tuit
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 1 May 2001 16:34:06 +0000 (18:34 +0200)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 1 May 2001 14:17:15 +0000 (14:17 +0000)
Message-Id: <20010501163255.19F2.H.M.BRAND@hccnet.nl>

cpp and optimization tweaks for HP-UX.

p4raw-id: //depot/perl@9929

hints/hpux.sh

index da481da..5254258 100644 (file)
@@ -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