From: Tilghman Lesher Date: Mon, 10 May 2010 16:34:21 +0000 (+0000) Subject: Allow compilation on Mac OS X 10.4 (Tiger) X-Git-Tag: 1.4.33-rc1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=921f7c3ef8137e613b34cbfbd710c140c266cadf;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@262151 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile.rules b/Makefile.rules index 8ffa19debf..d38f95a9d2 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