3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: discount: Cross-compile.

* gnu/packages/markup.scm (discount)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2020-10-07 14:46:54 +02:00
parent 6ad8fc65d4
commit f41b56a92e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -30,6 +30,7 @@
#:use-module (guix build-system trivial)
#:use-module (guix build-system cmake)
#:use-module (guix build-system perl)
#:use-module (guix utils)
#:use-module (gnu packages compression)
#:use-module (gnu packages)
#:use-module (gnu packages perl)
@ -138,7 +139,7 @@ convert it to structurally valid XHTML (or HTML).")
#t))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(setenv "CC" "gcc")
(setenv "CC" ,(cc-for-target))
(invoke "./configure.sh"
(string-append "--prefix=" (assoc-ref outputs "out"))
"--shared"))))))