]> git.sesse.net Git - stockfish/commitdiff
Improve compatibility with older versions of Mac OS X
authorDaylen Yang <services@daylenyang.com>
Sun, 7 Oct 2012 00:56:12 +0000 (17:56 -0700)
committerDaylen Yang <services@daylenyang.com>
Sun, 7 Oct 2012 00:56:12 +0000 (17:56 -0700)
Use the -mmacosx-version-min flag to support older versions of Mac OS X
(like version 10.6 and 10.7) when compiled on a machine running version
10.8.

src/Makefile

index 8c2c6a7028392642c5156cd92ee4329c72b4b899..fc6a4fae3fb81254460882a0d0b5e4709676b41e 100644 (file)
@@ -231,7 +231,7 @@ ifeq ($(comp),clang)
 endif
 
 ifeq ($(os),osx)
-       CXXFLAGS += -arch $(arch)
+       CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.6
 endif
 
 ### 3.3 General linker settings
@@ -246,7 +246,7 @@ ifneq ($(comp),mingw)
 endif
 
 ifeq ($(os),osx)
-       LDFLAGS += -arch $(arch)
+       LDFLAGS += -arch $(arch) -mmacosx-version-min=10.6
 endif
 
 ### 3.4 Debugging