gzip: Regenerate crc table in util.c using makecrc

This commit is contained in:
Paul Dersey 2023-05-31 13:43:21 -04:00
parent 87601931b2
commit 247b2a2a89
6 changed files with 123 additions and 14 deletions

View file

@ -26,6 +26,18 @@ cp ../../mk/main.mk Makefile
catm gzip.c.new ../../files/stat_override.c gzip.c
cp gzip.c.new gzip.c
# Remove generated crc table from util.c
patch -Np0 -i ../../patches/removecrc.patch
# Since IO redirection is not available yet, patch makecrc.c so that it writes
# C code to file crc.c that can be appended to util.c
patch -Np0 -i ../../patches/makecrc-write-to-file.patch
tcc -static -o makecrc sample/makecrc.c
./makecrc
catm util.c.new util.c crc.c
cp util.c.new util.c
# Build
make