summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain.eclass3
1 files changed, 2 insertions, 1 deletions
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*)