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, 20 Dec 2025 09:15:48 +0000 (10:15 +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 8665c799e0fa7155016e8bc6968ebe76a90e1d13..2d2c99addd1163a291c98652d8a0543116a71a03 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