summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2020-05-23 13:22:30 -0700
committerDavid S. Miller <davem@davemloft.net>2020-06-02 18:37:58 -0700
commitbc04be3d632c0997967792b5f96684f27f6d2db2 (patch)
tree098cf80259dcfac5239181decf23d11f03e29abd
parent1d3e8c3992bc55c16a2c843c47244f835f27860d (diff)
downloadsilo-bc04be3d632c0997967792b5f96684f27f6d2db2.tar.gz
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' Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--Rules.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rules.make b/Rules.make
index 3d0efe7..9739f7a 100644
--- a/Rules.make
+++ b/Rules.make
@@ -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