From 24ef60581ee187bb6d4388e124dfc34b8cf0b663 Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Sun, 12 Mar 2000 21:48:44 +0000 Subject: set optimize=-O only if not already set p4raw-id: //depot/perl@5684 --- hints/hpux.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'hints') diff --git a/hints/hpux.sh b/hints/hpux.sh index 67d823adf6..91ba86831e 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 -- cgit v1.2.1