File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 44
55# SPDX-License-Identifier: GPL-3.0-or-later
66
7- EXTRA_DISTFILES=" automake-1.16.3.tar.xz"
8-
97src_prepare () {
108 default
119 # This is needed for building with TCC
@@ -45,9 +43,18 @@ src_prepare() {
4543 libtoolize
4644 cp ../automake-1.16.3/lib/config.sub .
4745
46+ # Rebuild files generated by GCC build system
47+ rm gcc/c-parse.y libiberty/functions.texi
48+ rm libiberty/obstacks.texi
49+ touch libiberty/obstacks.texi
50+
51+ # Rebuild libcpp/ucnid.h
52+ rm libcpp/ucnid.h
53+ perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
54+
4855 # Rebuild bison files
4956 # Workaround for bison being too new
50- sed -i ' s/YYLEX/yylex()/' gcc/c-parse.y
57+ sed -i ' s/YYLEX/yylex()/' gcc/c-parse.in
5158 rm gcc/c-parse.c
5259 rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
5360 rm intl/plural.c
Original file line number Diff line number Diff line change @@ -44,9 +44,18 @@ src_prepare() {
4444 libtoolize
4545 cp ../automake-1.16.3/lib/config.sub .
4646
47+ # Rebuild files generated by GCC build system
48+ rm gcc/c-parse.y libiberty/functions.texi
49+ rm libiberty/obstacks.texi
50+ touch libiberty/obstacks.texi
51+
52+ # Rebuild libcpp/ucnid.h
53+ rm libcpp/ucnid.h
54+ perl libcpp/ucnid.pl < libcpp/ucnid.tab > libcpp/ucnid.h
55+
4756 # Rebuild bison files
4857 # Workaround for bison being too new
49- sed -i ' s/YYLEX/yylex()/' gcc/c-parse.y
58+ sed -i ' s/YYLEX/yylex()/' gcc/c-parse.in
5059 rm gcc/c-parse.c
5160 rm gcc/gengtype-yacc.c gcc/gengtype-yacc.h
5261 rm intl/plural.c
You can’t perform that action at this time.
0 commit comments