diff --git a/Makefile.rules b/Makefile.rules index f76d84b15b3361c02792009d4295e5ec56ae30e8..7ae4278444af667acc511e72d4e051a792ee8aac 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