]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Makefile: replace -O6 with -O3
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Sun, 2 Mar 2014 12:26:17 +0000 (12:26 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Sun, 2 Mar 2014 12:26:17 +0000 (12:26 +0000)
-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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@409344 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile.rules

index 5b4dfab96b93cf55a3be78f9889e4af9cea6dc1a..fb63634ace571ca2025769627ddba9c38d666c8d 100644 (file)
@@ -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)