commit:     687e6b6f1b665dbc5b37f470d4984c9c34eabad3
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  3 02:10:34 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 00:18:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=687e6b6f

toolchain.eclass: enable libada with USE=ada

This was added in d6d640106d59381bf34fea26b80c31e1de8c9e6b but it's not
clear to me why.

Noticed because it causes loads of Ada test failures as UNRESOLVED,
failing with:
```
gnatmake: RTS path 
"/var/tmp/portage/sys-devel/gcc-15.0.9999/work/build/x86_64-pc-linux-gnu/./libada"
 not valid: missing adainclude and adalib directories
compiler exited with status 1
```

Fixes: d6d640106d59381bf34fea26b80c31e1de8c9e6b
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 53b64a470e37..e9ee095d772e 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1309,7 +1309,7 @@ toolchain_src_configure() {
        fi
 
        if in_iuse ada ; then
-               confgcc+=( --disable-libada )
+               confgcc+=( $(use_enable ada libada) )
        fi
 
        if in_iuse cet ; then

Reply via email to