libapi: Define _FORTIFY_SOURCE as 2, not empty
authorBen Hutchings <benh@debian.org>
Sat, 15 Jan 2022 21:30:49 +0000 (22:30 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 7 Oct 2023 09:36:46 +0000 (10:36 +0100)
Forwarded: https://lore.kernel.org/lkml/20230424102049.58338-1-ukleinek@debian.org/

Signed-off-by: Ben Hutchings <benh@debian.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name libapi-define-_fortify_source-as-2-not-empty.patch

tools/lib/api/Makefile

index 044860ac1ed1cdbcf9e8cc5695d2917d822f5fae..e165357e15129606380eea42cdfca4655fbd9088 100644 (file)
@@ -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