Skip to content

Commit b4c65bf

Browse files
committed
Makefile: Fix compiling on macOS
1 parent 8611241 commit b4c65bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/unix/Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ ifeq ($(OS), LINUX)
122122
LDLIBS += -ldl
123123
endif
124124
ifeq ($(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)

0 commit comments

Comments
 (0)