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:
parent
16f6889b74
commit
f718c0a05d
1 changed files with 4 additions and 3 deletions
|
@ -87,17 +87,18 @@
|
||||||
(inputs
|
(inputs
|
||||||
`(("readline" ,readline)))
|
`(("readline" ,readline)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ;no tests
|
`(#:make-flags
|
||||||
|
(list ,(string-append "CC=" (cc-for-target)))
|
||||||
|
#:tests? #f ; no tests
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'set-env
|
(add-after 'unpack 'patch-file-names
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("/usr/local/bin")
|
(("/usr/local/bin")
|
||||||
(string-append (assoc-ref outputs "out") "/bin"))
|
(string-append (assoc-ref outputs "out") "/bin"))
|
||||||
(("/usr/local/opt/readline")
|
(("/usr/local/opt/readline")
|
||||||
(assoc-ref inputs "readline")))
|
(assoc-ref inputs "readline")))
|
||||||
(setenv "CC" "gcc")))
|
|
||||||
(delete 'configure))))
|
(delete 'configure))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(home-page "https://github.com/six-ddc/hss/")
|
(home-page "https://github.com/six-ddc/hss/")
|
||||||
|
|
Reference in a new issue