aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-06-06 10:01:20 +0300
committerGitHub <noreply@github.com>2023-06-06 10:01:20 +0300
commit281f6c1ea1541dde40c914b77a7529466b7dc3bf (patch)
treee2a126cbccf073bf43f8a9055b3682470622d71e
parentb644e48f36485c645cbc0dadf0fddb2aa14cc079 (diff)
parent28fd9716086f781f548423ea00e0e441e97037bc (diff)
downloadAFLplusplus-281f6c1ea1541dde40c914b77a7529466b7dc3bf.tar.gz
Merge pull request #1756 from fanquake/ready_to_build_use_CC
build: fix compiler version in build output
-rw-r--r--GNUmakefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 715e7386..55676d97 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -291,8 +291,6 @@ ifeq "$(shell command -v svn >/dev/null && svn proplist . 2>/dev/null && echo 1
IN_REPO=1
endif
-CCVER=$(shell cc -v 2>&1|tail -n 1)
-
ifeq "$(shell echo 'int main() { return 0;}' | $(CC) $(CFLAGS) -fsanitize=address -x c - -o .test2 2>/dev/null && echo 1 || echo 0 ; rm -f .test2 )" "1"
ASAN_CFLAGS=-fsanitize=address -fstack-protector-all -fno-omit-frame-pointer -DASAN_BUILD
ASAN_LDFLAGS=-fsanitize=address -fstack-protector-all -fno-omit-frame-pointer
@@ -439,7 +437,7 @@ endif
.PHONY: ready
ready:
- @echo "[+] Everything seems to be working, ready to compile. ($(CCVER))"
+ @echo "[+] Everything seems to be working, ready to compile. ($(shell $(CC) --version 2>&1|head -n 1))"
afl-as: src/afl-as.c include/afl-as.h $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)