commit: 590daa6d79ad4ae1c082762b356f6f07b4375ee3 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Thu Jul 30 21:17:40 2020 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Thu Jul 30 21:22:52 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=590daa6d
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 <slyfox <AT> gentoo.org> eclass/toolchain.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index c7d8c104c9b..3867bd2b9f8 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+=(
