From 590daa6d79ad4ae1c082762b356f6f07b4375ee3 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 30 Jul 2020 22:17:40 +0100 Subject: toolchain.eclass: avoid libquadmath in stage1-gcc libquadmath relies on libc presence (sqrt symbols). When initial toolchain is bootstrapped libc is not available yet. The change disables libquadmath for bootstrap cases when libc is not installed yet. gcc-stage2 still uses platform defaults for libquadmath. Reported-by: Andrew Aladjev Closes: https://bugs.gentoo.org/734820 Signed-off-by: Sergei Trofimovich --- eclass/toolchain.eclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eclass') diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c7d8c104c9bd..3867bd2b9f82 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1030,6 +1030,9 @@ toolchain_src_configure() { esac if [[ -n ${needed_libc} ]] ; then local confgcc_no_libc=( --disable-shared ) + # requires libc: bug #734820 + tc_version_is_at_least 4.6 && confgcc_no_libc+=( --disable-libquadmath ) + # requires libc tc_version_is_at_least 4.8 && confgcc_no_libc+=( --disable-libatomic ) if ! has_version ${CATEGORY}/${needed_libc} ; then confgcc+=( -- cgit v1.2.3-65-gdbad