summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-03-02 17:03:56 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-03-02 17:03:56 +0000
commit514a8244e340883d757a2b6c1a50c276a69e0a95 (patch)
treec8f844188acd87cf9fe16813588cc024fb8b7c0b /Makefile.rules
parent597690f3638405fb4b187f2e3cc7a6cf7c5a32d5 (diff)
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/ ........ Merged revisions 409308 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 409344 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 409346 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 688a4853c..35f522ed0 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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)