1 |
commit: 206cdb96c1bc1c5a4aad24540e60e5d320532423 |
2 |
Author: WANG Xuerui <git <AT> xen0n <DOT> name> |
3 |
AuthorDate: Sat Dec 25 04:23:41 2021 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 25 23:35:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=206cdb96 |
7 |
|
8 |
multilib.eclass: add initial defaults for ARCH=loong |
9 |
|
10 |
There is only full support for the LP64D ABI in the initial upstream |
11 |
submissions for the various low-level pieces, so full multilib |
12 |
combinations are not pursued at the moment; but the expected library |
13 |
search path of gcc (`lib64`) means the default of `lib` does not work |
14 |
in our case. |
15 |
|
16 |
Signed-off-by: WANG Xuerui <git <AT> xen0n.name> |
17 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
18 |
|
19 |
eclass/multilib.eclass | 9 +++++++++ |
20 |
1 file changed, 9 insertions(+) |
21 |
|
22 |
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass |
23 |
index 483f8d10c721..b14b0ef77857 100644 |
24 |
--- a/eclass/multilib.eclass |
25 |
+++ b/eclass/multilib.eclass |
26 |
@@ -368,6 +368,15 @@ multilib_env() { |
27 |
;; |
28 |
esac |
29 |
;; |
30 |
+ loongarch64*) |
31 |
+ export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d} |
32 |
+ export CHOST_lp64d=${CTARGET} |
33 |
+ export CTARGET_lp64d=${CTARGET} |
34 |
+ export LIBDIR_lp64d=${LIBDIR_lp64d-lib64} |
35 |
+ |
36 |
+ : ${MULTILIB_ABIS=lp64d} |
37 |
+ : ${DEFAULT_ABI=lp64d} |
38 |
+ ;; |
39 |
mips64*|mipsisa64*) |
40 |
export CFLAGS_o32=${CFLAGS_o32--mabi=32} |
41 |
export CHOST_o32=${CTARGET/mips64/mips} |