Skip to contentSkip to conversation

silo: Build with -U_FORTIFY_SOURCE

PATCH New Matt Turner 1 participant 1 message May 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 silo: Build with -U_FORTIFY_SOURCE

Otherwise the build will fail:

| ld: decompnet.o: in function `error':
| decomp.c:(.text+0x4dc): undefined reference to `__longjmp_chk'

---
 Rules.make | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Rules.make +2 -1
index 3d0efe7..9739f7a 100644
@@ -19,7 +19,8 @@ cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
 		> /dev/null 2>&1; then echo "y"; else echo "n"; fi;)
 
 CFLAGS = -Os -Wall -I. -I../include -fomit-frame-pointer \
-	-fno-strict-aliasing -fno-PIC -DSMALL_RELOC=$(SMALL_RELOC) \
+	-fno-strict-aliasing -fno-PIC -U_FORTIFY_SOURCE \
+	-DSMALL_RELOC=$(SMALL_RELOC) \
 	-DLARGE_RELOC=$(LARGE_RELOC)
 HOSTCFLAGS = -O2 -Wall
 
Signature · 1 line
2.26.2