diff options
author | hexcoder- <heiko@hexco.de> | 2020-03-16 14:04:21 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-03-16 14:04:21 +0100 |
commit | 5b9335be107338c001709cb282395f1155205e71 (patch) | |
tree | f5c7265754bda775e8d42facb567822daad51095 | |
parent | 9ce0617cdaf20649cae353946094859b72d237dc (diff) | |
download | afl++-5b9335be107338c001709cb282395f1155205e71.tar.gz |
fix compilation for Darwin/MacOSX
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
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" |