make: Allow overriding macosx sdk

MACOSX_SDK=MacOSX10.11.sdk ./build.sh update macosx-x86-32
windows-drag
Doug Coleman 2019-03-22 01:32:28 -05:00
parent 60c80e4b78
commit 5609370be6
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ ifdef CONFIG
endif
XCODE_PATH ?= /Applications/Xcode.app
MACOSX_SDK ?= MacOSX10.13.sdk
include $(CONFIG)

View File

@ -1,6 +1,6 @@
include vm/Config.macosx
include vm/Config.x86.32
# The last SDK to support x86
CFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
CXXFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
# The last SDK to support x86 is 10.13
CFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(MACOSX_SDK)
CXXFLAGS += --sysroot=$(XCODE_PATH)/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/$(MACOSX_SDK)