diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-06-25 17:13:16 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-06-25 17:13:16 +0200 |
commit | 3a62bb68e0867ceb920761bc19c96f5ca1992003 (patch) | |
tree | 2f403d0b9911002f4b5d8c2edd09a6b1117c93d1 /gcc_plugin | |
parent | aad433e11efa4a8350a264313c66db8ef6d17088 (diff) | |
parent | 8178f4dfddfb51f7a3e2f94e67bb9cf7332c7ef1 (diff) | |
download | afl++-3a62bb68e0867ceb920761bc19c96f5ca1992003.tar.gz |
updated unicornafl
Diffstat (limited to 'gcc_plugin')
-rw-r--r-- | gcc_plugin/GNUmakefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gcc_plugin/GNUmakefile b/gcc_plugin/GNUmakefile index 0f69e924..60f04bb7 100644 --- a/gcc_plugin/GNUmakefile +++ b/gcc_plugin/GNUmakefile @@ -28,11 +28,12 @@ MAN_PATH ?= $(PREFIX)/man/man8 VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2) -CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=2 -CFLAGS = -Wall -I../include -Wno-pointer-sign \ - -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \ - -DGCC_VERSION=\"$(GCCVER)\" -DGCC_BINDIR=\"$(GCCBINDIR)\" \ - -Wno-unused-function +CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=2 +CFLAGS_SAFE := -Wall -I../include -Wno-pointer-sign \ + -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \ + -DGCC_VERSION=\"$(GCCVER)\" -DGCC_BINDIR=\"$(GCCBINDIR)\" \ + -Wno-unused-function +override CFLAGS += $(CFLAGS_SAFE) CXXFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=2 CXXEFLAGS := $(CXXFLAGS) -Wall @@ -60,12 +61,12 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma SHMAT_OK=1 else SHMAT_OK=0 - CFLAGS+=-DUSEMMAP=1 + override CFLAGS += -DUSEMMAP=1 endif ifeq "$(TEST_MMAP)" "1" SHMAT_OK=0 - CFLAGS+=-DUSEMMAP=1 + override CFLAGS += -DUSEMMAP=1 endif ifneq "$(shell uname -s)" "Haiku" @@ -113,7 +114,7 @@ afl-common.o: ../src/afl-common.c $(CXX) $(CXXEFLAGS) $(PLUGIN_FLAGS) -shared $< -o $@ ../afl-gcc-rt.o: afl-gcc-rt.o.c | test_deps - $(CC) $(CFLAGS) -fPIC -c $< -o $@ + $(CC) $(CFLAGS_SAFE) -fPIC -c $< -o $@ test_build: $(PROGS) @echo "[*] Testing the CC wrapper and instrumentation output..." |