about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorhexcoder <hexcoder-@users.noreply.github.com>2020-04-08 15:25:29 +0200
committerGitHub <noreply@github.com>2020-04-08 15:25:29 +0200
commit2e29e64a3f3ff8cc334d1d9e920e8dcfe74881b8 (patch)
treee60398935e604c000904ee5fdbc4db0d78df16d8 /GNUmakefile
parent15e0319c98d134b39f0d4fce3f4658872154e1b1 (diff)
parent91dc7776ecc52ce92b2bc985d0fa86f84bf72586 (diff)
downloadafl++-2e29e64a3f3ff8cc334d1d9e920e8dcfe74881b8.tar.gz
Merge pull request #295 from devnexen/android_build_fix
Android build fix proposal.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 25928210..0cbeaa81 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -36,6 +36,7 @@ SH_PROGS    = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config
 MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8
 ASAN_OPTIONS=detect_leaks=0
 
+ifeq "$(findstring android, $(shell $(CC) --version 2>/dev/null))" ""
 ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -flto=full -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
 	CFLAGS_FLTO ?= -flto=full
 else
@@ -47,6 +48,7 @@ else
   endif
  endif
 endif
+endif
 
 ifneq "$(shell uname)" "Darwin"
  ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"