From: Gurusamy Sarathy Date: Sun, 12 Mar 2000 21:48:44 +0000 (+0000) Subject: set optimize=-O only if not already set X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24ef60581ee187bb6d4388e124dfc34b8cf0b663;p=p5sagit%2Fp5-mst-13.2.git set optimize=-O only if not already set p4raw-id: //depot/perl@5684 --- diff --git a/hints/hpux.sh b/hints/hpux.sh index 67d823a..91ba868 100644 --- a/hints/hpux.sh +++ b/hints/hpux.sh @@ -92,12 +92,15 @@ EOM cppminus='-' cpplast='-' fi - # For HP's ANSI C compiler, up to "+O3" is safe for everything - # except shared libraries (PIC code). Max safe for PIC is "+O2". - # Setting both causes innocuous warnings. - #optimize='+O3' - #cccdlflags='+z +O2' - optimize='-O' + case "$optimize" in + # For HP's ANSI C compiler, up to "+O3" is safe for everything + # except shared libraries (PIC code). Max safe for PIC is "+O2". + # Setting both causes innocuous warnings. + '') optimize='-O' + #optimize='+O3' + #cccdlflags='+z +O2' + ;; + esac cc=cc ;; esac