diff options
author | 2024-07-21 16:06:59 +0000 | |
---|---|---|
committer | 2024-07-31 01:01:47 +0100 | |
commit | 18cf313474587d078b1520f03511433ead141de4 (patch) | |
tree | b8f817d214ff3960bc4c4e3b38c27302b13ebeab /eclass | |
parent | sys-fs/clamfs: update EAPI 7 -> 8 (diff) | |
download | gentoo-18cf313474587d078b1520f03511433ead141de4.tar.gz gentoo-18cf313474587d078b1520f03511433ead141de4.tar.bz2 gentoo-18cf313474587d078b1520f03511433ead141de4.zip |
toolchain.eclass: ppc64-musl: Disable libquadmath
* --disable-libquadmath is needed to avoid GCC PR 116007.
* --disable-libquadmath-support is needed for Fortran to build, as GCC
upstream requires a weak header when float128 is available.
* --with-long-double-128=no explicitly disables all Float128 support.
[sam: Fix whitespace.]
Bug: https://bugs.gentoo.org/892874
Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
Closes: https://github.com/gentoo/gentoo/pull/37689
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c7c366a37ad0..a60024c134c3 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1214,7 +1214,14 @@ toolchain_src_configure() { # - https://git.musl-libc.org/cgit/musl/tree/INSTALL # - bug #704784 # - https://gcc.gnu.org/PR93157 - [[ ${CTARGET} == powerpc64-*-musl ]] && confgcc+=( --with-abi=elfv2 ) + # musl additionally does not support libquadmath. See: + # - https://gcc.gnu.org/PR116007 + [[ ${CTARGET} == powerpc64-*-musl ]] && confgcc+=( + --with-abi=elfv2 + --disable-libquadmath + --disable-libquadmath-support + --with-long-double-128=no + ) if in_iuse ieee-long-double; then # musl requires 64-bit long double, not IBM double-double or IEEE quad. |