diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-04-24 10:37:14 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-04-24 10:38:42 +0200 |
| commit | 93f61013dbf3702554b55087517c916a0835dc1b (patch) | |
| tree | 0d654ec1e809a01ef2649e465a021127c9760271 /gnu/packages/ssh.scm | |
| parent | f88be0a5b39ac70972041b717cf55f03b5084fc5 (diff) | |
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
Diffstat (limited to 'gnu/packages/ssh.scm')
| -rw-r--r-- | gnu/packages/ssh.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index 829dd4ec0ce..0b1ebfad56e 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm | |||
| @@ -161,7 +161,9 @@ file names. | |||
| 161 | (list | 161 | (list |
| 162 | #:configure-flags | 162 | #:configure-flags |
| 163 | #~(list "-DWITH_GCRYPT=ON" | 163 | #~(list "-DWITH_GCRYPT=ON" |
| 164 | "-DUNIT_TESTING=ON" | 164 | #$@(if (%current-target-system) |
| 165 | #~() | ||
| 166 | #~("-DUNIT_TESTING=ON")) | ||
| 165 | #$@(if (and (%current-target-system) | 167 | #$@(if (and (%current-target-system) |
| 166 | (not (target-64bit?))) | 168 | (not (target-64bit?))) |
| 167 | #~((string-append | 169 | #~((string-append |
