commit:     97069fd8721ea55980e548b9cf1d55e2a234a514
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 20 12:20:00 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 20 12:20:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97069fd8

toolchain.eclass: another Ada cross fix

Followup followup to 0a0b2fe6aadb9d0c3b41fdabb21535659c839bf5 and
1b5d47858780c700e706582aa370a69148552055.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/toolchain.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 8b3b5db38900..8178a7b837b2 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -989,7 +989,7 @@ toolchain_setup_ada() {
        for tool in gnat{,bind,chop,clean,kr,link,ls,make,name,prep} ; do
                cat <<-EOF > "${T}"/ada-wrappers/${tool} || die
                #!/bin/sh
-               exec $(type -P ${CBUILD}-${tool}-${ada_bootstrap}) "\$@"
+               exec $(type -P ${CHOST}-${tool}-${ada_bootstrap}) "\$@"
                EOF
 
                export "${tool^^}"="${T}"/ada-wrappers/${tool}

Reply via email to