1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: libssh: Restore support for cross-compilation.

Partly fixes <https://issues.guix.gnu.org/78029>.

Fixes a regression introduced in
b12d44dd5e 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
This commit is contained in:
Ludovic Courtès
2025-04-24 10:37:14 +02:00
parent f88be0a5b3
commit 93f61013db

View File

@@ -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