1 |
commit: ac2be2caa8c9e0a0cc622e2d542b1ab3ec927efb |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 28 20:08:39 2019 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 28 20:08:39 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=ac2be2ca |
7 |
|
8 |
eclass: Add riscv64 multilib definitions to multilib.eclass |
9 |
|
10 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
11 |
|
12 |
eclass/multilib.eclass | 14 ++++++++++++++ |
13 |
1 file changed, 14 insertions(+) |
14 |
|
15 |
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass |
16 |
index 393f0db..781a59a 100644 |
17 |
--- a/eclass/multilib.eclass |
18 |
+++ b/eclass/multilib.eclass |
19 |
@@ -385,6 +385,20 @@ multilib_env() { |
20 |
: ${MULTILIB_ABIS=ppc64 ppc} |
21 |
: ${DEFAULT_ABI=ppc64} |
22 |
;; |
23 |
+ riscv64*) |
24 |
+ export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d} |
25 |
+ export CHOST_lp64d=${CTARGET} |
26 |
+ export CTARGET_lp64d=${CTARGET} |
27 |
+ export LIBDIR_lp64d="lib64/lp64d" |
28 |
+ |
29 |
+ export CFLAGS_lp64=${CFLAGS_lp64d--mabi=lp64} |
30 |
+ export CHOST_lp64=${CTARGET} |
31 |
+ export CTARGET_lp64=${CTARGET} |
32 |
+ export LIBDIR_lp64="lib64/lp64" |
33 |
+ |
34 |
+ : ${MULTILIB_ABIS=lp64d lp64} |
35 |
+ : ${DEFAULT_ABI=lp64d} |
36 |
+ ;; |
37 |
s390x*) |
38 |
export CFLAGS_s390=${CFLAGS_s390--m31} # the 31 is not a typo |
39 |
export CHOST_s390=${CTARGET/s390x/s390} |