summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2021-12-25 12:23:41 +0800
committerAndreas K. Hüttel <dilfridge@gentoo.org>2021-12-26 00:35:53 +0100
commit206cdb96c1bc1c5a4aad24540e60e5d320532423 (patch)
tree6de3c1b4330969f139118204e40b67d9720e6026 /eclass
parentsys-kernel/gentoo-kernel-bin: fix ppc64le kernel unpack (diff)
downloadgentoo-206cdb96c1bc1c5a4aad24540e60e5d320532423.tar.gz
gentoo-206cdb96c1bc1c5a4aad24540e60e5d320532423.tar.bz2
gentoo-206cdb96c1bc1c5a4aad24540e60e5d320532423.zip
multilib.eclass: add initial defaults for ARCH=loong
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> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multilib.eclass9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index 483f8d10c721..b14b0ef77857 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}