From: Russell Bryant Date: Tue, 16 Mar 2010 20:52:09 +0000 (+0000) Subject: Backport chan_sip build fix for Mac OSX 10.6 from trunk. X-Git-Tag: 1.4.31-rc1~2^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170442b6e49a174cf1da01b8f5d22e5d38e16663;p=thirdparty%2Fasterisk.git Backport chan_sip build fix for Mac OSX 10.6 from trunk. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@252928 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile.rules b/Makefile.rules index b1e116d59c..8ffa19debf 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)