about summary refs log tree commit diff
path: root/gcc_plugin/Makefile
diff options
context:
space:
mode:
authorDavid Carlier <dcarlier@afilias.info>2019-11-12 09:13:13 +0000
committerDavid Carlier <dcarlier@afilias.info>2019-11-12 09:13:13 +0000
commit8f188194c14d32b6e4044097e8a3e34655a943a4 (patch)
tree9ff1067c145dd6e52b1607acb9b692e346a10207 /gcc_plugin/Makefile
parent760d4991f331c1a6719ce82df9b612e94c9a387c (diff)
downloadafl++-8f188194c14d32b6e4044097e8a3e34655a943a4.tar.gz
gcc plugin little update proposal.
like its llvm counterpart, passing the compiler chain used
to avoid using necessarily AFL_CC/AFL_CXX.
Diffstat (limited to 'gcc_plugin/Makefile')
-rw-r--r--gcc_plugin/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc_plugin/Makefile b/gcc_plugin/Makefile
index 287b6545..be54e553 100644
--- a/gcc_plugin/Makefile
+++ b/gcc_plugin/Makefile
@@ -80,7 +80,7 @@ test_deps:
 	@echo "[+] All set and ready to build."
 
 ../afl-gcc-fast: afl-gcc-fast.c | test_deps
-	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+	$(CC) -DAFL_GCC_CC=\"$(CC)\" -DAFL_GCC_CXX=\"$(CXX)\" $(CFLAGS) $< -o $@ $(LDFLAGS)
 	ln -sf afl-gcc-fast ../afl-g++-fast
 
 ../afl-gcc-pass.so: afl-gcc-pass.so.cc | test_deps