diff options
author | Michael G. Schwern <schwern@pobox.com> | 2003-02-18 21:31:37 +0000 |
---|---|---|
committer | Artur Bergman <sky@nanisky.com> | 2003-02-18 21:31:37 +0000 |
commit | c803703701b66ee8fee828b4344c92c4d0124184 (patch) | |
tree | 4a936b0ac334aa665f54acc3398d4c6ebdda954b /hints/darwin.sh | |
parent | d5fb0cc6f61f4be5573cf82c6eec2f249c3cf390 (diff) | |
download | perl-c803703701b66ee8fee828b4344c92c4d0124184.tar.gz |
Re: -Os for Darwin why?
Message-Id: <20030218113739.D25848@ttul.org>
p4raw-id: //depot/perl@18746
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r-- | hints/darwin.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index 4fa2254bf3..65cd322b57 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -58,12 +58,15 @@ usenm='true'; # pace with CPU speed over time (on any platform), this is probably a # reasonable assertion. if [ -z "${optimize}" ]; then - case "$osvers" in - [12345].*) optimize='-O3' ;; - *) optimize='-Os' ;; + case "`${cc:-gcc} -v 2>&1`" in + *"gcc version 3."*) optimize='-Os' ;; + *) optimize='-O3' ;; esac +else + optimize='-O3' fi + # -pipe: makes compilation go faster. # -fno-common because common symbols are not allowed in MH_DYLIB ccflags="${ccflags} -pipe -fno-common" |