gnu: newsboat: Prepare for cross-building.
* gnu/packages/syndication.scm (newsboat)[arguments]: Add a phase to use the correct compiler when cross-compiling. Change-Id: I1a560af41471cb8899322813f8a18c15ac0e5924
This commit is contained in:
parent
bd90c7d462
commit
4442aa8780
@ -287,6 +287,14 @@ cards.")
|
||||
(("^doc:.*") "doc:\n")
|
||||
(("install-podboat install-docs") "install-podboat")))))
|
||||
'())
|
||||
(add-after 'unpack 'pre-build
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(setenv "CXX" ,(cxx-for-target))
|
||||
(setenv "CXX_FOR_BUILD" (which "g++"))
|
||||
(substitute* "config.sh"
|
||||
(("if curl-config")
|
||||
(string-append
|
||||
"if " (search-input-file inputs "/bin/curl-config"))))))
|
||||
(add-after 'configure 'dont-vendor-self
|
||||
(lambda* (#:key vendor-dir #:allow-other-keys)
|
||||
;; Don't keep the whole tarball in the vendor directory
|
||||
|
Loading…
Reference in New Issue
Block a user