commit:     6971e384576057adda25bb49a45f898fa13f83b1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  1 02:04:41 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct  1 02:04:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6971e384

toolchain.eclass: go back to PATH lookup for Ada wrappers

This should work now that we install gcc-config-style symlinks in
ada-bootstrap.

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 355d5e12b4b5..f9c5f58bf7d4 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -989,7 +989,7 @@ toolchain_setup_ada() {
 
                cat <<-EOF > "${T}"/ada-wrappers/${tool} || die
                #!/bin/sh
-               exec ${CBUILD}-${tool}-${ada_bootstrap} --specs=${T}/ada.spec 
"\$@"
+               exec $(type -P ${CBUILD}-${tool}-${ada_bootstrap}) 
--specs=${T}/ada.spec "\$@"
                EOF
 
                export "${tool^^}"="${T}"/ada-wrappers/${tool}

Reply via email to