Subject: [bug#75051] [PATCH 06/14] gnu: openssl: Support loongarch64.

From: Zheng Junjie <[email-masked]>
Date: Tue, 24 Dec 2024 01:12:14 +0800

* gnu/packages/tls.scm (target->openssl-target, target->openssl-target): Add
loongarch64 case.

Change-Id: Ie85b4e1f39650f6134c9b5c4c81e0d5f83068558
---
 gnu/packages/tls.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 5f3bc72f6e2..cde5316cf43 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -397,7 +397,8 @@ (define (target->openssl-target pkg target)
              (cond ((target-hurd? target)
                     "hurd")
                    ((and (target-linux? target)
-                         (target-riscv64? target))
+                         (or (target-riscv64? target)
+                             (target-loongarch64? target)))
                     "linux64")
                    ((target-linux? target)
                     "linux")
@@ -427,6 +428,8 @@ (define (target->openssl-target pkg target)
               ((and (target-powerpc? target)
                     (target-64bit? target))
                "ppc64")
+              ((target-loongarch64? target)
+               "loongarch64")
               ((target-riscv64? target)
                "riscv64")
               ((target-64bit? target)
-- 
2.46.0