[PATCH 1/4] scripts: Makefile.pic: define __NO_FORTIFY without value

Ahmad Fatoum a.fatoum at barebox.org
Tue Jul 29 22:57:40 PDT 2025


The default for -D without = is to define the symbol to expand to 1.
This is nt what we want, because pbl/string.c defines it without value
leading to a build error. Fix this by defining it empty explicitly
instead.

Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
 scripts/Makefile.pic | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Makefile.pic b/scripts/Makefile.pic
index a08ee67f4a3e..0cefe350b39e 100644
--- a/scripts/Makefile.pic
+++ b/scripts/Makefile.pic
@@ -13,7 +13,7 @@ picflags-$(CONFIG_ARM64)	:= -fpie
 
 picflags-y			+= -include $(srctree)/include/linux/hidden.h \
 				   -D__fully_pic__ \
-				   -D__NO_FORTIFY \
+				   -D__NO_FORTIFY="" \
 				   -ffreestanding \
 				   -fno-stack-protector \
 				   $(call cc-option,-fno-addrsig) \
-- 
2.39.5




More information about the barebox mailing list