diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 153c18909ff5..d3c254c0f5c6 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -342,7 +342,7 @@ endif ifeq ($(DEBUG),0) ifeq ($(feature-fortify-source), 1) - CORE_CFLAGS += -D_FORTIFY_SOURCE=2 + CORE_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 endif endif