diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-09 20:30:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-09 20:30:03 +0000 |
commit | 7f3494f4bf7ad8fe4d6a3decba70ab99916bc8e4 (patch) | |
tree | 05264789be315d7ff67664d51bee9e6f0e103ec4 /Makefile.rules | |
parent | 0c82ea1d0ab6dab587b4906d8757bf7b63fcc1ab (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: http://svn.digium.com/svn/asterisk/trunk@251475 f38db490-d61c-443f-a65b-d21fe96a405b
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) |