diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-07-20 19:21:45 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-07-20 19:21:45 +0300 |
commit | f077c77699553ba57444178c5c2ebafdffc8ad95 (patch) | |
tree | d4e39fda69295006376c3534985304cbdb669dcd /tools/perf/Makefile.config | |
parent | 87abe344cd280802f431998fabfd35d2d340ca90 (diff) | |
download | linux-f077c77699553ba57444178c5c2ebafdffc8ad95.tar.xz |
perf build: Avoid defining _FORTIFY_SOURCE multiple times
One in perf's CFLAGS and the other in the distro python binding
scripts.
So if use the usual technique of first -D_FORTIFY_SOURCE then -D it.
Noticed with:
opensuse tumbleweed:
gcc version 12.1.1 20220629 [revision 7811663964aa7e31c3939b859bbfa2e16919639f] (SUSE Linux)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile.config')
-rw-r--r-- | tools/perf/Makefile.config | 2 |
1 files changed, 1 insertions, 1 deletions
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 |