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>
Tue, 6 May 2025 19:33:52 +0000 (21:33 +0200)
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 7f6396087b467dbad80eafdcdee64718cebda727..152a923af8e0dd4608f32b6b81eb789a43dff0b2 100644 (file)
@@ -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