mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
gcc: change libiberty rebuilds to not use hardcoded line nos
This commit is contained in:
parent
c83aea05f3
commit
bf348d6b56
4 changed files with 10 additions and 10 deletions
|
|
@ -134,11 +134,11 @@ src_prepare() {
|
|||
|
||||
# Regenerate crc table in libiberty/crc32.c
|
||||
pushd libiberty
|
||||
sed -n -e '38,65p' crc32.c > crcgen.c
|
||||
sed -n '/^ #include <stdio.h>/,/^ \}$/p' crc32.c > crcgen.c
|
||||
gcc -o crcgen crcgen.c
|
||||
head -n 69 crc32.c > crc32.c.new
|
||||
sed '/crc_v3\.txt/{n; q}' crc32.c > crc32.c.new
|
||||
./crcgen >> crc32.c.new
|
||||
tail -n +138 crc32.c >> crc32.c.new
|
||||
sed '1,/^};$/d' crc32.c >> crc32.c.new
|
||||
mv crc32.c.new crc32.c
|
||||
popd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue