From f961a2bf9094e10754a1faa6a240141370e1433b Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Wed, 31 Aug 2022 11:09:16 +0000 Subject: [PATCH] common.mak: fix compiler command line for afl-clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `afl-clang` requires a white space between a option name and the option value. Therefore let's fix this for `-xc` by adding a white space. How to reproduce: $ make -C zdump CC=afl-clang-fast LINK=afl-clang-fast Signed-off-by: Marc Hartmayer Reviewed-by: Steffen Eiden Reviewed-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- common.mak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.mak b/common.mak index 7a04f7ef..0ef5bb24 100644 --- a/common.mak +++ b/common.mak @@ -120,7 +120,7 @@ endif define check_header_prereq $(shell printf "#include <%s>\n int main(void) {return 0;}\n" $1 | \ ( $(CC) $(filter-out --coverage, $(ALL_CFLAGS)) $(ALL_CPPFLAGS) \ - $2 -o /dev/null -xc - ) >/dev/null 2>&1 && echo -n yes) + $2 -o /dev/null -x c - ) >/dev/null 2>&1 && echo -n yes) endef # @@ -133,7 +133,7 @@ endef # $5: Additional compiler & linker options (optional) # check_dep=\ -printf "\#include <%s>\n int main(void) {return 0;}\n" $2 | ( $(CC) $(filter-out --coverage, $(ALL_CFLAGS)) $(ALL_CPPFLAGS) $5 -o /dev/null -xc - ) > /dev/null 2>&1; \ +printf "\#include <%s>\n int main(void) {return 0;}\n" $2 | ( $(CC) $(filter-out --coverage, $(ALL_CFLAGS)) $(ALL_CPPFLAGS) $5 -o /dev/null -x c - ) > /dev/null 2>&1; \ if [ $$? != 0 ]; \ then \ printf " REQCHK %s (%s)\n" $1 $2; \