commit: 2cfb62836bcd010f49e186bfa9679ea469e72b32 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Nov 30 02:05:12 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Nov 30 02:08:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cfb6283
toolchain.eclass: wire up nvptx more We need to handle nvptx* in CTARGET in a few more places so we propagate that we're using newlib (which is obviously right but also means we don't then fail when building libatomic b/c libg.a is missing). Bug: https://bugs.gentoo.org/945296 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/toolchain.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 13f3298fea90..bcc47ffb9635 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1311,6 +1311,7 @@ toolchain_src_configure() { confgcc+=( --enable-shared --disable-threads ) ;; nvptx*) + needed_libc=newlib # "LTO is not supported for this target" confgcc+=( --disable-lto ) ;; @@ -1389,7 +1390,7 @@ toolchain_src_configure() { # __cxa_atexit is "essential for fully standards-compliant handling of # destructors", but apparently requires glibc. case ${CTARGET} in - *-elf|*-eabi) + nvptx*|*-elf|*-eabi) confgcc+=( --with-newlib ) ;; *-musl*)
