gnu: openssh: Fix cross-compilation.

* gnu/packages/ssh.scm (openssh): Pass --disable-strip argument when
cross-compiling.
This commit is contained in:
Mathieu Othacehe 2019-12-26 18:09:32 +01:00
parent adf218e2e8
commit 3d8c77836b
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -12,6 +12,7 @@
;;; Copyright © 2017 ng0 <ng0@n0.is> ;;; Copyright © 2017 ng0 <ng0@n0.is>
;;; Copyright © 2018 Manuel Graf <graf@init.at> ;;; Copyright © 2018 Manuel Graf <graf@init.at>
;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com> ;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -165,7 +166,15 @@ (define-public openssh
"--with-libedit" "--with-libedit"
;; Enable PAM support in sshd. ;; Enable PAM support in sshd.
"--with-pam") "--with-pam"
;; "make install" runs "install -s" by default,
;; which doesn't work for cross-compiled binaries
;; because it invokes 'strip' instead of
;; 'TRIPLET-strip'. Work around this.
,,@(if (%current-target-system)
'("--disable-strip")
'()))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases