From 170442b6e49a174cf1da01b8f5d22e5d38e16663 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 16 Mar 2010 20:52:09 +0000 Subject: [PATCH] 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 --- Makefile.rules | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.47.2