From 6518c10bf2b60dc2cb1c522bae22ca8b12ecde09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 24 Apr 2023 12:28:27 +0200 Subject: [PATCH] tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Forwarded: https://lore.kernel.org/all/20230424102827.58707-1-ukleinek@debian.org/ Commit 160be157eaba ("tool lib symbol: Add Makefile/Build") failed to define _FORTIFY_SOURCE to 2, probabaly this was cut&pasted from other Makefiles with the same problem. Fixes: 160be157eaba ("tool lib symbol: Add Makefile/Build") Signed-off-by: Uwe Kleine-König Acked-by: Ian Rogers Gbp-Pq: Topic bugfix/all Gbp-Pq: Name tools_lib_symbol_use_d_fortify_source_2_for_non_debug_builds.patch --- tools/lib/symbol/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile index 426b845edfa..d33f6f8570b 100644 --- a/tools/lib/symbol/Makefile +++ b/tools/lib/symbol/Makefile @@ -35,7 +35,7 @@ ifeq ($(DEBUG),0) endif ifeq ($(DEBUG),0) - CFLAGS += -D_FORTIFY_SOURCE + CFLAGS += -D_FORTIFY_SOURCE=2 endif # Treat warnings as errors unless directed not to -- 2.30.2