commit:     41b5bf45a83c26b663aa9ea9c4e290e5ee018622
Author:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 25 04:16:06 2022 +0000
Commit:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 10:11:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41b5bf45

dev-libs/openssl: fix build on loong

Just treat loongarch64 targets as generic64 for now.

This has been inside loongson-overlay for a while, and is tested on real
loong hardware.

See: https://github.com/gentoo/gentoo/pull/25189
Acked-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>

 dev-libs/openssl/files/gentoo.config-1.0.2 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2 
b/dev-libs/openssl/files/gentoo.config-1.0.2
index 68d7d0ac1fc1..caa569588f3c 100644
--- a/dev-libs/openssl/files/gentoo.config-1.0.2
+++ b/dev-libs/openssl/files/gentoo.config-1.0.2
@@ -97,6 +97,7 @@ linux)
                i[0-9]86*|\
                x86_64*:x86)  machine=elf;;
                ia64*)        machine=ia64;;
+               loongarch64*) machine="generic64 -DL_ENDIAN";;
                m68*)         machine="generic32 -DB_ENDIAN";;
                mips*el*)     machine="generic32 -DL_ENDIAN";;
                mips*)        machine="generic32 -DB_ENDIAN";;

Reply via email to