Browse Source

gnu: openssh: Fix cross-compilation.

* gnu/packages/ssh.scm (openssh): Pass --disable-strip argument when
cross-compiling.
gn-latest-20200725
Mathieu Othacehe 2 years ago
parent
commit
3d8c77836b
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 11
      gnu/packages/ssh.scm

11
gnu/packages/ssh.scm

@ -12,6 +12,7 @@
;;; Copyright © 2017 ng0 <ng0@n0.is>
;;; Copyright © 2018 Manuel Graf <graf@init.at>
;;; Copyright © 2019 Gábor Boskovits <boskovits@gmail.com>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -165,7 +166,15 @@ a server that supports the SSH-2 protocol.")
"--with-libedit"
;; 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
(modify-phases %standard-phases

Loading…
Cancel
Save