gnu: di: Cross-compile.

* gnu/packages/admin.scm (di)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2020-06-06 17:23:32 +02:00
parent cfec1af96a
commit aba98be540
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2758,7 +2758,7 @@ (define-public di
(delete 'configure) ; no configure script
(add-before 'build 'setup-environment
(lambda* (#:key outputs #:allow-other-keys)
(setenv "CC" "gcc")
(setenv "CC" ,(cc-for-target))
(setenv "prefix" (assoc-ref outputs "out"))
#t)))
#:make-flags (list "--environment-overrides")))