diff options
author | meepingsnesroms | 2018-10-12 09:18:57 -0700 |
---|---|---|
committer | GitHub | 2018-10-12 09:18:57 -0700 |
commit | 30fe01d0516db2bf861546cfb8c97055fafc6235 (patch) | |
tree | 5e1c1c4c4df45d9d03e0b677c1cc091bc91b6a7f /Makefile | |
parent | 878f1ce501f6977e666c7a43bfd1199e228bde60 (diff) | |
download | snesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.tar.gz snesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.tar.bz2 snesemu-30fe01d0516db2bf861546cfb8c97055fafc6235.zip |
Fix compiling on Mac OS Mojave
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -81,9 +81,12 @@ ifeq ($(arch),ppc) FLAGS += -DMSB_FIRST OLD_GCC = 1 endif - OSXVER = `sw_vers -productVersion | cut -d. -f 2` - OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"` + 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 ifndef ($(NOUNIVERSAL)) FLAGS += $(ARCHFLAGS) LDFLAGS += $(ARCHFLAGS) |