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>
Wed, 9 Feb 2022 08:35:55 +0000 (08:35 +0000)
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 a13e9c7f1fc5007d130807d75aa0a0a0120ddb0f..a0bdc2487596f9945abeab4640e259ec62436503 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