set optimize=-O only if not already set
Gurusamy Sarathy [Sun, 12 Mar 2000 21:48:44 +0000 (21:48 +0000)]
p4raw-id: //depot/perl@5684

hints/hpux.sh

index 67d823a..91ba868 100644 (file)
@@ -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