Michael G. Schwern [Tue, 18 Feb 2003 21:31:37 +0000 (21:31 +0000)]
Message-Id: <
20030218113739.D25848@ttul.org>
p4raw-id: //depot/perl@18746
# 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"