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@gentoo.org>
This commit is contained in:
Sam James
2024-11-30 02:08:36 +00:00
parent 0783f2a4f8
commit 2cfb62836b
+2 -1
View File
@@ -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*)