From 2b31626d9f96fa94f3f114d76f9428fee3d8dbf3 Mon Sep 17 00:00:00 2001 From: Richard Goedeken Date: Tue, 14 Nov 2017 16:12:28 -0800 Subject: [PATCH] update Makefile method for finding OSX_SDK_PATH --- projects/unix/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/unix/Makefile b/projects/unix/Makefile index f685b5d97..34eb9560c 100755 --- a/projects/unix/Makefile +++ b/projects/unix/Makefile @@ -182,9 +182,7 @@ ifeq ($(OS), LINUX) endif endif ifeq ($(OS), OSX) - #xcode-select has been around since XCode 3.0, i.e. OS X 10.5 - OSX_SDK_ROOT = $(shell xcode-select -print-path)/Platforms/MacOSX.platform/Developer/SDKs - OSX_SDK_PATH = $(OSX_SDK_ROOT)/$(shell ls $(OSX_SDK_ROOT) | tail -1) + OSX_SDK_PATH = $(shell xcrun --sdk macosx --show-sdk-path) TARGET = libmupen64plus$(POSTFIX).dylib LDFLAGS += -framework CoreFoundation -dynamiclib