# HG changeset patch # User Andreas Woess # Date 1444235187 -7200 # Node ID a241f629dbfb52c97c7ae956b28047adeb51fcb8 # Parent d92c9f043d027629ae70b09d136b5e80506ad289 use xcodebuild to get SDKROOT diff -r d92c9f043d02 -r a241f629dbfb make/bsd/makefiles/saproc.make --- a/make/bsd/makefiles/saproc.make Wed Oct 07 17:48:07 2015 +0200 +++ b/make/bsd/makefiles/saproc.make Wed Oct 07 18:26:27 2015 +0200 @@ -76,6 +76,9 @@ ifeq ($(SYSROOT_CFLAGS),) # this will happen when building without spec.gmk, set SDKROOT to a valid SDK # path if your system does not have headers installed in the system frameworks + ifeq ($(SDKROOT),) + SDKROOT = `xcodebuild -sdk macosx -version|grep '^Path: '|sed 's/Path: //'` + endif SA_SYSROOT_FLAGS = -F"$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/Frameworks" else # Just use SYSROOT_CFLAGS