diff options
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 45f7e4bb0..0bb32825a 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -37,8 +37,8 @@ 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) + ifeq ($(shell if test `/usr/bin/sw_vers -productVersion | cut -c4` -gt 5; then echo 6; else echo 0; fi),6) + # Snow Leopard/Lion has an issue with this optimization flag on large files (like chan_sip) OPTIMIZE+=-fno-inline-functions endif endif |