File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,14 @@ ifeq ($(OS), LINUX)
122122 LDLIBS += -ldl
123123endif
124124ifeq ($(OS ) , OSX)
125- # xcode-select has been around since XCode 3.0, i.e. OS X 10.5
126- OSX_SDK_ROOT = $(shell xcode-select -print-path) /Platforms/MacOSX.platform/Developer/SDKs
127- OSX_SDK_PATH = $(OSX_SDK_ROOT ) /$(shell ls $(OSX_SDK_ROOT ) | tail -1)
125+ OSX_SDK_PATH = $(shell xcrun --sdk macosx --show-sdk-path)
128126
129127 ifeq ($(CPU), X86)
130128 ifeq ($(ARCH_DETECTED), 64BITS)
131- CFLAGS += -arch x86_64 -mmacosx-version-min=10.5 -isysroot $(OSX_SDK_PATH )
129+ CFLAGS += -arch x86_64 -mmacosx-version-min=10.6 -isysroot $(OSX_SDK_PATH )
132130 LDLIBS += -ldl
133131 else
134- CFLAGS += -mmmx -msse -fomit-frame-pointer -arch i686 -mmacosx-version-min=10.5 -isysroot $(OSX_SDK_PATH )
132+ CFLAGS += -mmmx -msse -fomit-frame-pointer -arch i686 -mmacosx-version-min=10.6 -isysroot $(OSX_SDK_PATH )
135133 LDLIBS += -ldl -read_only_relocs suppress
136134 endif
137135 endif
You can’t perform that action at this time.
0 commit comments