Makefile: replace -O6 with -O3

-O6 is not a legal option of gcc. Unofficially gcc considers it to be
equivalent of -O3. clang chalks on it, though. This commit sets the 
default optimization flag to be -O3, like gcc actually considered it.

Review: https://reviewboard.asterisk.org/r/3280/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@409308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/98/198/1
Tzafrir Cohen 11 years ago
parent 5e47d100d1
commit 25d1057845

@ -35,7 +35,7 @@ else
CMD_PREFIX=
endif
OPTIMIZE?=-O6
OPTIMIZE?=-O3
ifneq ($(findstring darwin,$(OSARCH)),)
ifeq ($(shell if test `/usr/bin/sw_vers -productVersion | cut -c4` -gt 5; then echo 6; else echo 0; fi),6)
# Snow Leopard/Lion has an issue with this optimization flag on large files (like chan_sip)

Loading…
Cancel
Save