Gentoo Archives: gentoo-dev

From: WANG Xuerui <i.gentoo@×××××.name>
To: gentoo-dev@l.g.o
Cc: WANG Xuerui <git@×××××.name>
Subject: [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong
Date: Sat, 25 Dec 2021 04:24:11
Message-Id: 20211225042341.1687502-1-i.gentoo@xen0n.name
1 From: WANG Xuerui <git@×××××.name>
2
3 There is only full support for the LP64D ABI in the initial upstream
4 submissions for the various low-level pieces, so full multilib
5 combinations are not pursued at the moment; but the expected library
6 search path of gcc (`lib64`) means the default of `lib` does not work
7 in our case.
8
9 Signed-off-by: WANG Xuerui <git@×××××.name>
10 ---
11 eclass/multilib.eclass | 9 +++++++++
12 1 file changed, 9 insertions(+)
13
14 diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
15 index 483f8d10c72..b14b0ef7785 100644
16 --- a/eclass/multilib.eclass
17 +++ b/eclass/multilib.eclass
18 @@ -368,6 +368,15 @@ multilib_env() {
19 ;;
20 esac
21 ;;
22 + loongarch64*)
23 + export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d}
24 + export CHOST_lp64d=${CTARGET}
25 + export CTARGET_lp64d=${CTARGET}
26 + export LIBDIR_lp64d=${LIBDIR_lp64d-lib64}
27 +
28 + : ${MULTILIB_ABIS=lp64d}
29 + : ${DEFAULT_ABI=lp64d}
30 + ;;
31 mips64*|mipsisa64*)
32 export CFLAGS_o32=${CFLAGS_o32--mabi=32}
33 export CHOST_o32=${CTARGET/mips64/mips}
34 --
35 2.34.0

Replies

Subject Author
Re: [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong "Andreas K. Huettel" <dilfridge@g.o>