Fix depcomp being deleted in GCC: 2nd attempt

The first attempt doesn't always work. Revert to the previous more ugly
fix.
This commit is contained in:
Samuel Tyler 2025-10-03 09:24:02 +10:00
parent 1452a8fd65
commit acf1a7f24e
2 changed files with 4 additions and 2 deletions

View file

@ -101,12 +101,13 @@ src_prepare() {
# Regenerate autotools
# configure
touch depcomp
find . -name configure | sed 's:/configure::' | while read d; do
pushd "${d}"
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fiv
popd
done
# Because GCC is stupid, copy depcomp back in
cp "${PREFIX}/share/automake-1.15/depcomp" .
# Makefile.in only
BACK="${PWD}"
find . -type d \

View file

@ -138,12 +138,13 @@ src_prepare() {
# Regenerate autotools
# configure
touch depcomp
find . -name configure | sed 's:/configure::' | while read d; do
pushd "${d}"
AUTOMAKE=automake-1.15 ACLOCAL=aclocal-1.15 autoreconf-2.69 -fiv
popd
done
# Because GCC is stupid, copy depcomp back in
cp "${PREFIX}/share/automake-1.15/depcomp" .
# A odd script
pushd gcc/m2/gm2-libs
autoconf-2.69 -f config-host.in > config-host