mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
Various GCC 4.0 regenerations
This commit is contained in:
parent
1ada7a101e
commit
2550cebc20
3 changed files with 22 additions and 6 deletions
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
EXTRA_DISTFILES="automake-1.16.3.tar.xz"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# This is needed for building with TCC
|
||||
|
|
@ -45,9 +43,18 @@ src_prepare() {
|
|||
libtoolize
|
||||
cp ../automake-1.16.3/lib/config.sub .
|
||||
|
||||
# Rebuild files generated by GCC build system
|
||||
rm gcc/c-parse.y libiberty/functions.texi
|
||||
rm libiberty/obstacks.texi
|
||||
touch libiberty/obstacks.texi
|
||||
|
||||
# Rebuild libcpp/ucnid.h
|
||||
rm libcpp/ucnid.h
|
||||
perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
|
||||
|
||||
# Rebuild bison files
|
||||
# Workaround for bison being too new
|
||||
sed -i 's/YYLEX/yylex()/' gcc/c-parse.y
|
||||
sed -i 's/YYLEX/yylex()/' gcc/c-parse.in
|
||||
rm gcc/c-parse.c
|
||||
rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
|
||||
rm intl/plural.c
|
||||
|
|
|
|||
|
|
@ -44,9 +44,18 @@ src_prepare() {
|
|||
libtoolize
|
||||
cp ../automake-1.16.3/lib/config.sub .
|
||||
|
||||
# Rebuild files generated by GCC build system
|
||||
rm gcc/c-parse.y libiberty/functions.texi
|
||||
rm libiberty/obstacks.texi
|
||||
touch libiberty/obstacks.texi
|
||||
|
||||
# Rebuild libcpp/ucnid.h
|
||||
rm libcpp/ucnid.h
|
||||
perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
|
||||
|
||||
# Rebuild bison files
|
||||
# Workaround for bison being too new
|
||||
sed -i 's/YYLEX/yylex()/' gcc/c-parse.y
|
||||
sed -i 's/YYLEX/yylex()/' gcc/c-parse.in
|
||||
rm gcc/c-parse.c
|
||||
rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
|
||||
rm intl/plural.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue