diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-03-09 20:30:03 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-03-09 20:30:03 +0000 |
commit | c1e33534a524c2dab8966e5f54fa4acc2f3a928e (patch) | |
tree | 05264789be315d7ff67664d51bee9e6f0e103ec4 /Makefile.rules | |
parent | 065bba3520607059a4d8d8908684a39b70be58c5 (diff) |
Build system modifications to ensure that Asterisk properly builds on Mac OS X 10.6.
(closes issue #16997)
Reported by: jquinn
Patches:
20100309__issue16997__2.diff.txt uploaded by tilghman (license 14)
Tested by: tilghman, russell
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@251475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 10970cfbc..d917d8708 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) |