gnu: hss: Fix cross-compilation.

* gnu/packages/ssh.scm (hss)[arguments]: Move $CC to MAKE-FLAGS and use
CC-FOR-TARGET.  Rename ‘pre-env’ to the more accurate ‘patch-file-names’.
This commit is contained in:
Tobias Geerinckx-Rice 2020-07-11 19:48:12 +02:00
parent 16f6889b74
commit f718c0a05d
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -87,17 +87,18 @@ (define-public hss
(inputs
`(("readline" ,readline)))
(arguments
`(#:tests? #f ;no tests
`(#:make-flags
(list ,(string-append "CC=" (cc-for-target)))
#:tests? #f ; no tests
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-env
(add-after 'unpack 'patch-file-names
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* "Makefile"
(("/usr/local/bin")
(string-append (assoc-ref outputs "out") "/bin"))
(("/usr/local/opt/readline")
(assoc-ref inputs "readline")))
(setenv "CC" "gcc")))
(delete 'configure))))
(build-system gnu-build-system)
(home-page "https://github.com/six-ddc/hss/")