diff options
author | Sam James <sam@gentoo.org> | 2024-11-30 02:05:12 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-30 02:08:36 +0000 |
commit | 2cfb62836bcd010f49e186bfa9679ea469e72b32 (patch) | |
tree | ca46d208f200a9aa5b07b4c1eae9596eb33a36a0 /eclass | |
parent | net-im/telegram-desktop: Drop old (diff) | |
download | gentoo-2cfb62836bcd010f49e186bfa9679ea469e72b32.tar.gz gentoo-2cfb62836bcd010f49e186bfa9679ea469e72b32.tar.bz2 gentoo-2cfb62836bcd010f49e186bfa9679ea469e72b32.zip |
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>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 3 |
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*) |