From: Georgy Yakovlev <gyakovlev@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: toolchain@gentoo.org, Georgy Yakovlev <gyakovlev@gentoo.org>
Subject: [gentoo-dev] [PATCH] toolchain.eclass: fix crossdev powerpc-*-musl builds
Date: Sun, 26 Dec 2021 21:24:12 -0800 [thread overview]
Message-ID: <20211227052412.3492387-1-gyakovlev@gentoo.org> (raw)
otherwise initial build may fail with:
unknown long double size, cannot define BFP_FMT
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
---
eclass/toolchain.eclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index fd03ba176276..1102c4fc5d56 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1099,6 +1099,11 @@ toolchain_src_configure() {
# Set up defaults based on current CFLAGS
is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double )
[[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double )
+ if [[ ${CTARGET} == powerpc-*-musl ]]; then
+ # fix: unknown long double size, cannot define BFP_FMT
+ confgcc+=( --disable-decimal-float )
+ export gcc_cv_target_ldbl128=no
+ fi
;;
ppc64)
# On ppc64 big endian target gcc assumes elfv1 by default,
--
2.34.1
next reply other threads:[~2021-12-27 5:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 5:24 Georgy Yakovlev [this message]
2021-12-27 5:37 ` [gentoo-dev] [PATCH] toolchain.eclass: fix crossdev powerpc-*-musl builds Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211227052412.3492387-1-gyakovlev@gentoo.org \
--to=gyakovlev@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=toolchain@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox