mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-20 02:02:58 +01:00
gzip: Regenerate crc table in util.c using makecrc
This commit is contained in:
parent
87601931b2
commit
247b2a2a89
6 changed files with 123 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue