From: Ben Hutchings Date: Sat, 15 Jan 2022 21:30:49 +0000 (+0100) Subject: libapi: Define _FORTIFY_SOURCE as 2, not empty X-Git-Tag: archive/raspbian/6.5.6-1+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9a8c3c4040ee8a3dfdb5c0a86b17c6f4eb3e95e2;p=linux.git libapi: Define _FORTIFY_SOURCE as 2, not empty Forwarded: https://lore.kernel.org/lkml/20230424102049.58338-1-ukleinek@debian.org/ Signed-off-by: Ben Hutchings Gbp-Pq: Topic bugfix/all Gbp-Pq: Name libapi-define-_fortify_source-as-2-not-empty.patch --- diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile index 044860ac1ed..e165357e151 100644 --- a/tools/lib/api/Makefile +++ b/tools/lib/api/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