aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-10 16:34:21 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-10 16:34:21 +0000
commitdc15ece7220ad82fa0208343913108e5ab12e45b (patch)
tree06bbde699f7b104eb134b0c14c26eef6d41c0ca6 /Makefile.rules
parentf601931af1e17f4c2a1a74a9cb77c1f89f36014b (diff)
Allow compilation on Mac OS X 10.4 (Tiger)
(closes issue #17297) Reported by: jcovert Patches: 20100506__issue17297.diff.txt uploaded by tilghman (license 14) (closes issue #17302) Reported by: jcovert git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@262151 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 8ffa19deb..d38f95a9d 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -37,6 +37,9 @@ endif
OPTIMIZE?=-O6
ifneq ($(findstring darwin,$(OSARCH)),)
+ ifeq ($(shell /usr/bin/sw_vers -productVersion | cut -c1-4),10.4)
+ OPTIMIZE+=-fno-inline
+ endif
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