comparison make/bsd/makefiles/saproc.make @ 22666:a241f629dbfb

use xcodebuild to get SDKROOT
author Andreas Woess <andreas.woess@oracle.com>
date Wed, 07 Oct 2015 18:26:27 +0200
parents d92c9f043d02
children dd9cc155639c
comparison
equal deleted inserted replaced
22665:d92c9f043d02 22666:a241f629dbfb
74 74
75 # This is needed to locate JavaNativeFoundation.framework 75 # This is needed to locate JavaNativeFoundation.framework
76 ifeq ($(SYSROOT_CFLAGS),) 76 ifeq ($(SYSROOT_CFLAGS),)
77 # this will happen when building without spec.gmk, set SDKROOT to a valid SDK 77 # this will happen when building without spec.gmk, set SDKROOT to a valid SDK
78 # path if your system does not have headers installed in the system frameworks 78 # path if your system does not have headers installed in the system frameworks
79 ifeq ($(SDKROOT),)
80 SDKROOT = `xcodebuild -sdk macosx -version|grep '^Path: '|sed 's/Path: //'`
81 endif
79 SA_SYSROOT_FLAGS = -F"$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/Frameworks" 82 SA_SYSROOT_FLAGS = -F"$(SDKROOT)/System/Library/Frameworks/JavaVM.framework/Frameworks"
80 else 83 else
81 # Just use SYSROOT_CFLAGS 84 # Just use SYSROOT_CFLAGS
82 SA_SYSROOT_FLAGS=$(SYSROOT_CFLAGS) 85 SA_SYSROOT_FLAGS=$(SYSROOT_CFLAGS)
83 endif 86 endif