diff --git a/tools/cgcomp/Makefile b/tools/cgcomp/Makefile index 610a285..af94fff 100644 --- a/tools/cgcomp/Makefile +++ b/tools/cgcomp/Makefile @@ -60,10 +60,10 @@ endif ifneq (,$(findstring Darwin,$(UNAME))) SDK := $(shell xcrun --show-sdk-path) - OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path)/Info MinimumSDKVersion 2> /dev/null || 10.4) + OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path 2> /dev/null)/Info MinimumSDKVersion 2> /dev/null || echo 10.15) OSXCFLAGS := -mmacosx-version-min=$(OSX_MIN) OSXCXXFLAGS := $(OSXCFLAGS) - CXXFLAGS += -fvisibility=hidden + CXXFLAGS += -fvisibility=hidden LDFLAGS += -mmacosx-version-min=$(OSX_MIN) -Wl,-syslibroot,$(SDK) endif diff --git a/tools/fself/Makefile b/tools/fself/Makefile index 1807942..84fc435 100644 --- a/tools/fself/Makefile +++ b/tools/fself/Makefile @@ -47,7 +47,7 @@ endif ifneq (,$(findstring Darwin,$(UNAME))) SDK := $(shell xcrun --show-sdk-path) - OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path)/Info MinimumSDKVersion 2> /dev/null || 10.4) + OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path 2> /dev/null)/Info MinimumSDKVersion 2> /dev/null || echo 10.4) OSXCFLAGS := -mmacosx-version-min=$(OSX_MIN) OSXCXXFLAGS := $(OSXCFLAGS) CXXFLAGS += -fvisibility=hidden diff --git a/tools/generic/Makefile b/tools/generic/Makefile index 0ce8b58..534f882 100644 --- a/tools/generic/Makefile +++ b/tools/generic/Makefile @@ -29,7 +29,7 @@ endif ifneq (,$(findstring Darwin,$(shell uname -s))) SDK := $(shell xcrun --show-sdk-path) - OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path)/Info MinimumSDKVersion 2> /dev/null || 10.4) + OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path 2> /dev/null)/Info MinimumSDKVersion 2> /dev/null || echo 10.4) CFLAGS += -mmacosx-version-min=$(OSX_MIN) -isysroot $(SDK) -Wl,-syslibroot,$(SDK) endif diff --git a/tools/geohot/Makefile b/tools/geohot/Makefile index 18086e6..fc4332f 100644 --- a/tools/geohot/Makefile +++ b/tools/geohot/Makefile @@ -34,7 +34,7 @@ endif ifneq (,$(findstring Darwin,$(UNAME))) SDK := $(shell xcrun --show-sdk-path) - OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path)/Info MinimumSDKVersion 2> /dev/null || 10.4) + OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path 2> /dev/null)/Info MinimumSDKVersion 2> /dev/null || echo 10.4) OSXCFLAGS := -mmacosx-version-min=$(OSX_MIN) OSXCXXFLAGS := $(OSXCFLAGS) CXXFLAGS += -fvisibility=hidden diff --git a/tools/ps3load/Makefile b/tools/ps3load/Makefile index d59ddb8..126801f 100644 --- a/tools/ps3load/Makefile +++ b/tools/ps3load/Makefile @@ -39,7 +39,7 @@ endif ifneq (,$(findstring Darwin,$(shell uname -s))) SDK := $(shell xcrun --show-sdk-path) - OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path)/Info MinimumSDKVersion 2> /dev/null || 10.4) + OSX_MIN := $(shell defaults read $(shell xcrun --show-sdk-platform-path 2> /dev/null)/Info MinimumSDKVersion 2> /dev/null || echo 10.4) OSXCFLAGS := -mmacosx-version-min=$(OSX_MIN) -isysroot $(SDK) OSXCXXFLAGS := $(OSXCFLAGS) CXXFLAGS += -fvisibility=hidden