Skip to content
Snippets Groups Projects
Unverified Commit f41b56a9 authored by Tobias Geerinckx-Rice's avatar Tobias Geerinckx-Rice
Browse files

gnu: discount: Cross-compile.

* gnu/packages/markup.scm (discount)[arguments]: Use CC-FOR-TARGET.
parent 6ad8fc65
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ (define-module (gnu packages markup)
#: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 @@ (define-public discount
#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"))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment