diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-12 21:48:44 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-12 21:48:44 +0000 |
commit | 24ef60581ee187bb6d4388e124dfc34b8cf0b663 (patch) | |
tree | eb3ad1fca0571eb513cc07daf9e1d3e6e1080a6f /hints/hpux.sh | |
parent | 074479712f24612219fbc26003f537afc1d45c31 (diff) | |
download | perl-24ef60581ee187bb6d4388e124dfc34b8cf0b663.tar.gz |
set optimize=-O only if not already set
p4raw-id: //depot/perl@5684
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r-- | hints/hpux.sh | 15 |
1 files changed, 9 insertions, 6 deletions
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 |