]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Backport chan_sip build fix for Mac OSX 10.6 from trunk.
authorRussell Bryant <russell@russellbryant.com>
Tue, 16 Mar 2010 20:52:09 +0000 (20:52 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 16 Mar 2010 20:52:09 +0000 (20:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252928 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile.rules

index b1e116d59cfb71302581305f8f72a3e6887e2bdf..8ffa19debf8c1d42a06b5f1ec3b3a358317fc692 100644 (file)
@@ -36,6 +36,12 @@ else
 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)