aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-04-24 10:37:14 +0200
committerLudovic Courtès <ludo@gnu.org>2025-04-24 10:38:42 +0200
commit93f61013dbf3702554b55087517c916a0835dc1b (patch)
tree0d654ec1e809a01ef2649e465a021127c9760271
parentf88be0a5b39ac70972041b717cf55f03b5084fc5 (diff)
downloadguix-93f61013dbf3702554b55087517c916a0835dc1b.tar.gz
guix-93f61013dbf3702554b55087517c916a0835dc1b.zip
gnu: libssh: Restore support for cross-compilation.
Partly fixes <https://issues.guix.gnu.org/78029>. Fixes a regression introduced in b12d44dd5e35ac236bf3fbb5619b9c8c2f42c902 where cross-compiling would no longer work due to CMocka not being found. * gnu/packages/ssh.scm (libssh)[arguments]: Pass “-DUNIT_TESTING=ON” only when (%current-target-system) is #f. Reported-by: Yelninei <yelninei@tutamail.com> Change-Id: I9c7af784eabb2ae1d6022b134e0252a1e2952bd4
-rw-r--r--gnu/packages/ssh.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm
index 829dd4ec0c..0b1ebfad56 100644
--- a/gnu/packages/ssh.scm
+++ b/gnu/packages/ssh.scm
@@ -161,7 +161,9 @@ file names.
(list
#:configure-flags
#~(list "-DWITH_GCRYPT=ON"
- "-DUNIT_TESTING=ON"
+ #$@(if (%current-target-system)
+ #~()
+ #~("-DUNIT_TESTING=ON"))
#$@(if (and (%current-target-system)
(not (target-64bit?)))
#~((string-append