mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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:
@@ -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*)
|
||||
|
||||
Reference in New Issue
Block a user