From: WANG Xuerui <i.gentoo@xen0n.name>
To: gentoo-dev@lists.gentoo.org
Cc: WANG Xuerui <git@xen0n.name>
Subject: [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong
Date: Sat, 25 Dec 2021 12:23:41 +0800 [thread overview]
Message-ID: <20211225042341.1687502-1-i.gentoo@xen0n.name> (raw)
From: WANG Xuerui <git@xen0n.name>
There is only full support for the LP64D ABI in the initial upstream
submissions for the various low-level pieces, so full multilib
combinations are not pursued at the moment; but the expected library
search path of gcc (`lib64`) means the default of `lib` does not work
in our case.
Signed-off-by: WANG Xuerui <git@xen0n.name>
---
eclass/multilib.eclass | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index 483f8d10c72..b14b0ef7785 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -368,6 +368,15 @@ multilib_env() {
;;
esac
;;
+ loongarch64*)
+ export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d}
+ export CHOST_lp64d=${CTARGET}
+ export CTARGET_lp64d=${CTARGET}
+ export LIBDIR_lp64d=${LIBDIR_lp64d-lib64}
+
+ : ${MULTILIB_ABIS=lp64d}
+ : ${DEFAULT_ABI=lp64d}
+ ;;
mips64*|mipsisa64*)
export CFLAGS_o32=${CFLAGS_o32--mabi=32}
export CHOST_o32=${CTARGET/mips64/mips}
--
2.34.0
next reply other threads:[~2021-12-25 4:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-25 4:23 WANG Xuerui [this message]
2021-12-25 23:39 ` [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong Andreas K. Huettel
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=20211225042341.1687502-1-i.gentoo@xen0n.name \
--to=i.gentoo@xen0n.name \
--cc=gentoo-dev@lists.gentoo.org \
--cc=git@xen0n.name \
/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