me
/
guix
Archived
1
0
Fork 0

gnu: guile-ssh: Support cross-compilation.

Cross-compilation broke with the update to 0.15.1 in
eabc6af9b8.  'guile-snarf' would invoke
cpp instead of TRIPLET-cpp, which would thus fail to find libssh
headers.

* gnu/packages/ssh.scm (guile-ssh)[arguments]: Add
'support-cross-compilation' phase.
master
Ludovic Courtès 2022-03-07 00:26:51 +01:00
parent afb9f27523
commit 3ac1366648
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 0 deletions

View File

@ -328,6 +328,13 @@ Additionally, various channel-specific options can be negotiated.")
#:configure-flags '("--disable-static")
#:phases (modify-phases %standard-phases
(add-before 'bootstrap 'support-cross-compilation
(lambda _
;; Support cross-compilation:
;; <https://github.com/artyom-poptsov/guile-ssh/issues/30>.
(substitute* "libguile-ssh/Makefile.am"
(("\\$\\(guile_snarf\\)")
"CPP=\"$(CPP)\" $(guile_snarf)"))))
(add-before 'build 'fix-libguile-ssh-file-name
(lambda* (#:key outputs #:allow-other-keys)
;; Build and install libguile-ssh.so so that we can use