From 75dd6fe6ac2c5e2fb18967185c0543ed9554d836 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 7 Feb 2016 23:29:01 +0000 Subject: extract cocoa SDK path rather than use pre-defined path --- cocoa/Makefile.target | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/Makefile.target b/cocoa/Makefile.target index 19040930d..70b6a5a4c 100644 --- a/cocoa/Makefile.target +++ b/cocoa/Makefile.target @@ -22,7 +22,8 @@ endif # for timerisset() CFLAGS += -D_DARWIN_C_SOURCE -SDK_PATH ?= $(DEVELOPER_PATH)/SDKs/MacOSX$(SDK_VERSION).sdk +SDK_PARAM := $(shell xcodebuild -showsdks | awk '/^$/{p=0};p; /OS X SDKs:/{p=1}' | tail -1 | cut -f3) +SDK_PATH ?= $(shell xcodebuild -version $(SDK_PARAM) Path) SDK_FLAGS := -isysroot $(SDK_PATH) -mmacosx-version-min=$(MACOSX_VERSION) CFLAGS := $(SDK_FLAGS) $(CFLAGS) LDFLAGS := $(SDK_FLAGS) -Wl,-syslibroot,$(SDK_PATH) $(LDFLAGS) -- cgit v1.2.3