aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-16 20:52:09 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-16 20:52:09 +0000
commitd187d32c2d57ca824504bf439c39acc93e06cded (patch)
tree60e608e9f15924b8b2f9717b8d8a0b9910ed9e34
parent91430863bddb3ca4ae9d68f1a223c65b1efd1868 (diff)
Backport chan_sip build fix for Mac OSX 10.6 from trunk.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@252928 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--Makefile.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index b1e116d59..8ffa19deb 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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)