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)