diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-05 10:49:31 -0400 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2014-08-14 08:13:06 +0100 |
commit | 37ba1d29232e5efcd96df9382701ce322ee7782e (patch) | |
tree | 7d3820b2da79da3145b89dedcacdac3a311760f1 /hints | |
parent | 0ceeb7eb983f9dc4e1d5b493e91f7b4225b17454 (diff) | |
download | perl-37ba1d29232e5efcd96df9382701ce322ee7782e.tar.gz |
Sun c99 doesn't like bare -O.
(cherry picked from commit a5a0b9b91da0e2ae65a3eaaed49632081d8eb2de)
Diffstat (limited to 'hints')
-rw-r--r-- | hints/solaris_2.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 5599ce314a..b807b2c296 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -359,6 +359,13 @@ EOM d_attribute_pure='undef' d_attribute_unused='undef' d_attribute_warn_unused_result='undef' + # The c99 doesn't like bare -O. + case "$cc" in + *c99) case "$optimize" in + ''|-O) optimize=-O3 ;; + esac + ;; + esac ;; esac fi |