aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 466d4d1..ca4e440 100644
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,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)