gnu: toybox: Cross compile.

* gnu/packages/busybox.scm (toybox)[arguments]: Use cc-for-target.
This commit is contained in:
Efraim Flashner 2020-12-11 12:17:51 +02:00
parent 8f330aebee
commit f769ad12f1
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -22,6 +22,7 @@ (define-module (gnu packages busybox)
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages admin) #:use-module (gnu packages admin)
@ -132,11 +133,11 @@ (define-public toybox
"00aw9d809wj1bqlb2fsssdgz7rj0363ya14py0gfdm0rkp98zcpa")))) "00aw9d809wj1bqlb2fsssdgz7rj0363ya14py0gfdm0rkp98zcpa"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'configure 'set-environment-variables (add-before 'configure 'set-environment-variables
(lambda _ (lambda _
(setenv "CC" (which "gcc")) (setenv "CC" ,(cc-for-target))
(setenv "HOSTCC" (which "gcc")) (setenv "HOSTCC" (which "gcc"))
#t)) #t))
(replace 'configure (replace 'configure