make: Use the MacOSX 10.13 SDK for x86 support.

Bugfix - CFLAGS += instead of CFLAGS = because it would get overwritten otherwise.

Also allow overwriting of XCODE_PATH for non-standard path.

Download the 10.13 SDK from
https://github.com/phracker/MacOSX-SDKs/releases

```bash
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.13.sdk.tar.xz
xz --uncompress MacOSX10.13.sdk.tar.xz
tar xvf MacOSX10.13.sdk.tar
mv MacOSX10.13.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
```
windows-drag
Doug Coleman 2019-03-22 00:07:38 -05:00
parent d575ac084f
commit 60c80e4b78
2 changed files with 7 additions and 1 deletions

View File

@ -13,9 +13,11 @@ ifdef CONFIG
CXX=$(SHELL_CXX)
endif
XCODE_PATH ?= /Applications/Xcode.app
include $(CONFIG)
CFLAGS = -Wall \
CFLAGS += -Wall \
-pedantic \
-DFACTOR_VERSION="$(VERSION)" \
-DFACTOR_GIT_LABEL="$(GIT_LABEL)" \

View File

@ -1,2 +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