lkml.org 
[lkml]   [2023]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools lib api: Use -D_FORTIFY_SOURCE=2 for non-debug builds
Date
Commit 58b79186c343 ("tools lib api: Fix make DEBUG=1 build") intended
to drop -D_FORTIFY_SOURCE=2 for debug builds. It did that, but also
degraded -D_FORTIFY_SOURCE=2 to -D_FORTIFY_SOURCE (which implicitly
defines the symbol to 1), probably by mistake. Add the =2 back.

Fixes: 58b79186c343 ("tools lib api: Fix make DEBUG=1 build")
Signed-off-by: Uwe Kleine-König <ukleinek@debian.org>
---
tools/lib/api/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index 044860ac1ed1..e165357e1512 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -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
--
2.39.2
\
 
 \ /
  Last update: 2023-04-24 12:37    [W:0.021 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site