diff options
author | Matt Turner <mattst88@gmail.com> | 2020-05-23 13:22:30 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-02 18:37:58 -0700 |
commit | bc04be3d632c0997967792b5f96684f27f6d2db2 (patch) | |
tree | 098cf80259dcfac5239181decf23d11f03e29abd | |
parent | 1d3e8c3992bc55c16a2c843c47244f835f27860d (diff) | |
download | silo-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.make | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |