public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong
@ 2021-12-25  4:23 WANG Xuerui
  2021-12-25 23:39 ` Andreas K. Huettel
  0 siblings, 1 reply; 2+ messages in thread
From: WANG Xuerui @ 2021-12-25  4:23 UTC (permalink / raw
  To: gentoo-dev; +Cc: WANG Xuerui

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong
  2021-12-25  4:23 [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong WANG Xuerui
@ 2021-12-25 23:39 ` Andreas K. Huettel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas K. Huettel @ 2021-12-25 23:39 UTC (permalink / raw
  To: gentoo-dev; +Cc: WANG Xuerui, WANG Xuerui

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

Thank you! Pushed.

Am Samstag, 25. Dezember 2021, 05:23:41 CET schrieb WANG Xuerui:
> 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}


-- 
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer 
(council, qa, toolchain, base-system, perl, libreoffice)

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-25 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-25  4:23 [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong WANG Xuerui
2021-12-25 23:39 ` Andreas K. Huettel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox