[asterisk-commits] russell: branch 1.4 r252928 - /branches/1.4/Makefile.rules

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 16 15:52:12 CDT 2010


Author: russell
Date: Tue Mar 16 15:52:09 2010
New Revision: 252928

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=252928
Log:
Backport chan_sip build fix for Mac OSX 10.6 from trunk.

Modified:
    branches/1.4/Makefile.rules

Modified: branches/1.4/Makefile.rules
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/Makefile.rules?view=diff&rev=252928&r1=252927&r2=252928
==============================================================================
--- branches/1.4/Makefile.rules (original)
+++ branches/1.4/Makefile.rules Tue Mar 16 15:52:09 2010
@@ -36,6 +36,12 @@
 endif
 
 OPTIMIZE?=-O6
+ifneq ($(findstring darwin,$(OSARCH)),)
+  ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.6)
+    # Snow Leopard has an issue with this optimization flag on large files (like chan_sip)
+    OPTIMIZE+=-fno-inline-functions
+  endif
+endif
 
 ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
     _ASTCFLAGS+=$(OPTIMIZE)




More information about the asterisk-commits mailing list