aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile.gcc_plugin
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2023-08-09 18:29:25 +0000
committerGitHub <noreply@github.com>2023-08-09 18:29:25 +0000
commitfa44d8f79f03c0aab3cfea93c37b70edc367c1bb (patch)
treef39de203508117dcb50b66baa8fd335a887a9c54 /GNUmakefile.gcc_plugin
parent18d9234dfe4b6db32a2da335834908e49300e5cd (diff)
parent55d696fbae435e0e69adf75cb2df1361186fb999 (diff)
downloadafl++-fa44d8f79f03c0aab3cfea93c37b70edc367c1bb.tar.gz
Merge pull request #1831 from AFLplusplus/dev
push to stable
Diffstat (limited to 'GNUmakefile.gcc_plugin')
-rw-r--r--GNUmakefile.gcc_plugin10
1 files changed, 6 insertions, 4 deletions
diff --git a/GNUmakefile.gcc_plugin b/GNUmakefile.gcc_plugin
index 41face4c..16c98399 100644
--- a/GNUmakefile.gcc_plugin
+++ b/GNUmakefile.gcc_plugin
@@ -28,15 +28,17 @@ MAN_PATH ?= $(PREFIX)/share/man/man8
VERSION = $(shell grep '^$(HASH)define VERSION ' ./config.h | cut -d '"' -f2)
-CFLAGS ?= -O3 -g -funroll-loops -D_FORTIFY_SOURCE=1
+CFLAGS ?= -O3 -g -funroll-loops
+# -D_FORTIFY_SOURCE=1
CFLAGS_SAFE := -Wall -Iinclude -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=1
-CXXEFLAGS := $(CXXFLAGS) -Wall -std=c++11
+CXXFLAGS ?= -O3 -g -funroll-loops
+# -D_FORTIFY_SOURCE=1
+CXXEFLAGS := $(CXXFLAGS) $(CPPFLAGS) -Wall -std=c++11
CC ?= gcc
CXX ?= g++
@@ -59,7 +61,7 @@ ifeq "$(findstring Foundation,$(shell $(CC) --version))" ""
endif
PLUGIN_BASE = "$(shell $(CC) -print-file-name=plugin)"
-PLUGIN_FLAGS = -fPIC -fno-rtti -I$(PLUGIN_BASE)/include -I$(PLUGIN_BASE)
+PLUGIN_FLAGS = -fPIC -fno-rtti -fno-exceptions -I$(PLUGIN_BASE)/include -I$(PLUGIN_BASE)
HASH=\#
GCCVER = $(shell $(CC) --version 2>/dev/null | awk 'NR == 1 {print $$NF}')