Permalink
Browse files

Makefile: fixes backward compatibility on Mac OS X

  • Loading branch information...
1 parent 8e3b3d1 commit 9edbcda5801fb8e60e77cf3191be04995245b0a6 @vedaldi vedaldi committed Jun 18, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 Makefile
View
@@ -148,16 +148,16 @@ CFLAGS += $(if $(PROFILE), -g,)
# Mac OS X Intel 32
ifeq ($(ARCH),maci)
SDKROOT ?= /Developer/SDKs/MacOSX10.6.sdk
-MACOSX_DEPLOYMENT_TARGET ?= 10.5
-CFLAGS += -m32 -isysroot $(SDKROOT)
+MACOSX_DEPLOYMENT_TARGET ?= 10.4
+CFLAGS += -m32 -isysroot $(SDKROOT) -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
LDFLAGS += -lm -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
endif
# Mac OS X Intel 64
ifeq ($(ARCH),maci64)
SDKROOT ?= /Developer/SDKs/MacOSX10.6.sdk
-MACOSX_DEPLOYMENT_TARGET ?= 10.5
-CFLAGS += -m64 -isysroot $(SDKROOT)
+MACOSX_DEPLOYMENT_TARGET ?= 10.4
+CFLAGS += -m64 -isysroot $(SDKROOT) -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
LDFLAGS += -lm -mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
endif

0 comments on commit 9edbcda

Please sign in to comment.