From 5b9335be107338c001709cb282395f1155205e71 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Mon, 16 Mar 2020 14:04:21 +0100 Subject: fix compilation for Darwin/MacOSX --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d05bb7d..e38efdb3 100644 --- a/Makefile +++ b/Makefile @@ -48,8 +48,10 @@ else endif endif -ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" +ifneq "$(shell uname)" "Darwin" + ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" CFLAGS_OPT = -march=native + endif endif ifneq "$(shell uname -m)" "x86_64" -- cgit 1.4.1