From 891dd90a4e7d47ed913bfcb056cd21f6ae4da7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20=C3=96hrstr=C3=B6m?= Date: Sat, 6 May 2023 21:11:40 +0200 Subject: [PATCH] Fix fuzzing build. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec5eedc..396311e 100644 --- a/Makefile +++ b/Makefile @@ -407,12 +407,12 @@ update_manufacturers: rm *.flags manufacturers.txt -GCC_MAJOR_VERSION:=$(shell gcc --version | head -n 1 | sed 's/.* \([0-9]\)\.[0-9]\.[0-9]$$/\1/') +GCC_MAJOR_VERSION:=$(shell cc --version | head -n 1 | sed 's/.* \([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*$$/\1/') AFL_HOME:=AFLplusplus $(AFL_HOME)/src/afl-cc.c: mkdir -p AFLplusplus - if ! dpkg -s gcc-$(GCC_MAJOR_VERSION)-plugin-dev 2>/dev/null >/dev/null ; then echo "Please run: sudo apt install gcc-$(GCC_MAJOR_VERSION)-plugin-dev"; exit 1; fi + @if ! dpkg -s gcc-$(GCC_MAJOR_VERSION)-plugin-dev 2>/dev/null >/dev/null ; then echo "Please run: sudo apt install gcc-$(GCC_MAJOR_VERSION)-plugin-dev"; exit 1; fi git clone https://github.com/AFLplusplus/AFLplusplus.git afl_prepared: AFLplusplus/src/afl-cc.c