Makefile: fix the afl invocation

DEFS must be set in the environment or else will override even DEFS+=...
statements in the Makefile.
This commit is contained in:
Marco d'Itri 2018-01-08 02:50:53 +01:00
parent 5d60bbe102
commit ac1d4125de

View File

@ -107,13 +107,8 @@ servers_charset.h: servers_charset_list make_servers_charset.pl
##############################################################################
afl:
$(MAKE) whois \
CC=afl-gcc AFL_HARDEN=1 \
HAVE_ICONV=1 DEFS=-DAFL_MODE=1
afl2:
$(MAKE) whois \
HAVE_ICONV=1 DEFS=-DAFL_MODE=1
-rm -f Makefile.depend
DEFS=-DAFL_MODE=1 AFL_HARDEN=1 $(MAKE) whois CC=afl-gcc HAVE_ICONV=1
afl-run:
nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois