dev-lang/gnat-gpl: use architecture specific name for bootstrap

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2022-11-16 14:15:44 +01:00
parent 4aee9fdd66
commit 8329f0f2a0

View File

@@ -79,10 +79,10 @@ src_prepare() {
die "ada compiler not available"
fi
local bundledchost=""
use amd64 && local bundledchost="x86_64"
use x86 && local bundledchost="i686"
if use bootstrap; then
local bundledchost=""
use amd64 && local bundledchost="x86_64"
use x86 && local bundledchost="i686"
rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/${bundledchost}-pc-linux-gnu/4.7.4/ld \
|| die
ln -s /usr/bin/$CHOST-ld \
@@ -113,6 +113,12 @@ src_prepare() {
ln -s $(type -P ${GNATBIND}) bin/gnatbind || die
ln -s $(type -P ${GNATLINK}) bin/gnatlink || die
ln -s $(type -P ${GNATLS}) bin/gnatls || die
ln -s $(type -P ${GCC}) bin/${bundledchost}-pc-linux-gnu-gcc || die
ln -s $(type -P ${CXX}) bin/${bundledchost}-pc-linux-gnu-g++ || die
ln -s $(type -P ${GNATMAKE}) bin/${bundledchost}-pc-linux-gnu-gnatmake || die
ln -s $(type -P ${GNATBIND}) bin/${bundledchost}-pc-linux-gnu-gnatbind || die
ln -s $(type -P ${GNATLINK}) bin/${bundledchost}-pc-linux-gnu-gnatlink || die
ln -s $(type -P ${GNATLS}) bin/${bundledchost}-pc-linux-gnu-gnatls || die
cd ..
mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die