mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-11 13:55:24 +01:00
Apply CRC regen to GCC 4.7
CRC generated table is regenerated using the same method as GCC 10. Closes #243
This commit is contained in:
parent
946dd8ee33
commit
c170152d14
2 changed files with 11 additions and 1 deletions
|
|
@ -81,6 +81,16 @@ src_prepare() {
|
|||
# Rebuild flex generated files
|
||||
rm gcc/gengtype-lex.c
|
||||
|
||||
# Regenerate crc table in libiberty/crc32.c
|
||||
pushd libiberty
|
||||
sed -n -e '39,66p' crc32.c > crcgen.c
|
||||
gcc -o crcgen crcgen.c
|
||||
head -n 70 crc32.c > crc32.c.new
|
||||
./crcgen >> crc32.c.new
|
||||
tail -n +139 crc32.c >> crc32.c.new
|
||||
mv crc32.c.new crc32.c
|
||||
popd
|
||||
|
||||
# Remove translation catalogs
|
||||
find . -name '*.gmo' -delete
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue