Skip to contentSkip to conversation

silo: Build with -fno-PIC to reduce size

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 silo: Build with -fno-PIC to reduce size

Otherwise the resulting image will be too large:

| ./util second.map second.aout second2.aout second.b second.b2 | Distance between two changes larger than 63K 3 84553 0

---
 Rules.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Rules.make +1 -1
index 0f176db..3d0efe7 100644
@@ -19,7 +19,7 @@ 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 -DSMALL_RELOC=$(SMALL_RELOC) \
+	-fno-strict-aliasing -fno-PIC -DSMALL_RELOC=$(SMALL_RELOC) \
 	-DLARGE_RELOC=$(LARGE_RELOC)
 HOSTCFLAGS = -O2 -Wall
 
Signature · 1 line
2.26.2