summary refs log tree commit diff
path: root/gnu/packages/tls.scm
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2022-07-09 23:39:16 +0200
committerLudovic Courtès <ludo@gnu.org>2022-08-05 00:14:30 +0200
commit334e953c93f470d6b289fb259e9b7bea3638e36a (patch)
treeb4742c9c661ff3fe6fd6a97be0a27782032b37c4 /gnu/packages/tls.scm
parente2397e66e6d6f0d67152b87b7ec8debee3687c53 (diff)
downloadguix-334e953c93f470d6b289fb259e9b7bea3638e36a.tar.gz
gnu: openssl: Cross-compile to mingw.
* gnu/packages/tls.scm (target->openssl-target): Add cases for mingw and
mingw64.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/tls.scm')
-rw-r--r--gnu/packages/tls.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 697d9d1d36..a310899b27 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -378,6 +378,12 @@ OpenSSL for TARGET."
   ;; without causing rebuilds for other targets.
   (cond ((string-prefix? "i586" target)
          "hurd-x86")
+        ((string-suffix? "mingw32" target)
+         (string-append
+          "mingw"
+          (if (string-prefix? "x86_64" target)
+              "64"
+              "")))
         ((string-prefix? "i686" target)
          "linux-x86")
         ((string-prefix? "x86_64" target)