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>
Fri, 1 Nov 2024 04:23:37 +0000 (05:23 +0100)
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 e21e1b40b52575dee2c1222d165df590a406a281..7d2612d6e3487c876d81a2704ea4084aa95a4285 100644 (file)
@@ -29,7 +29,7 @@ endif
 endif
 
 ifeq ($(DEBUG),0)
-  CFLAGS += -D_FORTIFY_SOURCE
+  CFLAGS += -D_FORTIFY_SOURCE=2
 endif
 
 # Treat warnings as errors unless directed not to