From 6a4af792da06a6f4eb07ee7c4bb5b35dd4b1535a Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Fri, 12 Oct 2018 09:24:28 -0700 Subject: [PATCH] Fix compiling on Mac OS Mojave --- libretro/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libretro/Makefile b/libretro/Makefile index 9d94c537..c8d37c76 100644 --- a/libretro/Makefile +++ b/libretro/Makefile @@ -89,9 +89,12 @@ else ifeq ($(platform), osx) ifeq ($(arch),ppc) CXXFLAGS += -DBLARGG_BIG_ENDIAN=1 -D__ppc__ endif - OSXVER = `sw_vers -productVersion | cut -d. -f 2` - OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` - fpic += -mmacosx-version-min=10.1 + OSXVER = $(shell sw_vers -productVersion | cut -d. -f 2) + OSX_GT_MOJAVE = $(shell (( $(OSXVER) >= 14)) && echo "YES") + ifneq ($(OSX_GT_MOJAVE),YES) + #this breaks compiling on Mac OS Mojave + fpic += -mmacosx-version-min=10.1 + endif # Nintendo Switch (libnx) else ifeq ($(platform), libnx)