Regenerate binutils bison files, autoconf and automake files.
This commit is contained in:
parent
21096f6ff2
commit
cf9d0d1f3c
|
@ -1,10 +1,52 @@
|
|||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_configure() {
|
||||
# TODO: use autoconf to regenerate configure
|
||||
src_prepare() {
|
||||
rm configure
|
||||
autoconf-2.13
|
||||
for dir in binutils bfd gas ld gprof libiberty opcodes; do
|
||||
cd $dir
|
||||
rm configure
|
||||
autoconf-2.13
|
||||
cd ..
|
||||
done
|
||||
for dir in etc intl; do
|
||||
cd $dir
|
||||
rm configure
|
||||
autoconf-2.12
|
||||
cd ..
|
||||
done
|
||||
|
||||
# automake errors out without this
|
||||
cd gas
|
||||
mv config/m68k-parse.y
|
||||
sed -i 's#config/m68k-parse.y#m68k-parse.y#' Makefile.am
|
||||
cd ..
|
||||
|
||||
# Disable documentation build which needs pod2man
|
||||
for dir in bfd binutils gas gprof ld opcodes; do
|
||||
cd $dir
|
||||
sed -i '/SUBDIRS/d' Makefile.am
|
||||
rm Makefile.in
|
||||
automake-1.4
|
||||
cd ..
|
||||
done
|
||||
|
||||
# Rebuild bison files
|
||||
touch */*.y
|
||||
rm ld/ldgram.c ld/ldgram.h
|
||||
rm gas/itbl-parse.c gas/itbl-parse.h
|
||||
rm gas/m68k-parse.c gas/m68k-parse.h
|
||||
rm binutils/arparse.c binutils/arparse.h
|
||||
rm binutils/nlmheader.c binutils/nlmheader.h
|
||||
rm binutils/sysinfo.c binutils/sysinfo.h
|
||||
rm binutils/defparse.c binutils/defparse.h
|
||||
rm binutils/rcparse.c binutils/rcparse.h
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
AR="tcc -ar" RANLIB="true" CC="tcc -D __GLIBC_MINOR__=6" \
|
||||
./configure \
|
||||
--disable-nls \
|
||||
|
@ -14,7 +56,8 @@ src_configure() {
|
|||
--host=i386-unknown-linux \
|
||||
--target=i386-unknown-linux \
|
||||
--with-sysroot=/after \
|
||||
--disable-64-bit-bfd
|
||||
--disable-64-bit-bfd \
|
||||
--prefix=/after
|
||||
|
||||
# TODO: Find a way to avoid these hacks
|
||||
sed -i '/#undef pid_t/d' libiberty/config.in
|
||||
|
|
Loading…
Reference in New Issue