From: Uwe Kleine-König Date: Mon, 24 Apr 2023 10:28:27 +0000 (+0200) Subject: tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds X-Git-Tag: archive/raspbian/6.12.27-1+rpi1^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=99274641e71afb718488cc2baa6ef8c8a875adb9;p=linux.git tools lib symbol: Use -D_FORTIFY_SOURCE=2 for non-debug builds 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 --- diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile index 13d43c6f92b..4a08cc4e19f 100644 --- a/tools/lib/symbol/Makefile +++ b/tools/lib/symbol/Makefile @@ -39,7 +39,7 @@ endif endif ifeq ($(DEBUG),0) - CFLAGS += -D_FORTIFY_SOURCE + CFLAGS += -D_FORTIFY_SOURCE=2 endif # Treat warnings as errors unless directed not to