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
1.4
Russell Bryant 15 years ago
parent 18c87d730f
commit 170442b6e4

@ -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)

Loading…
Cancel
Save