diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-12-11 12:17:51 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-12-11 12:17:51 +0200 |
commit | f769ad12f1b7834a5fb6c870a6737d2eea495744 (patch) | |
tree | 91c5ec0fb9cf00d63c08df46c34ef22a0319fd14 | |
parent | 8f330aebee504269d4d7188daa85e95503f71888 (diff) |
gnu: toybox: Cross compile.
* gnu/packages/busybox.scm (toybox)[arguments]: Use cc-for-target.
-rw-r--r-- | gnu/packages/busybox.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/busybox.scm b/gnu/packages/busybox.scm index c931a2f2f7..7fc065f7ac 100644 --- a/gnu/packages/busybox.scm +++ b/gnu/packages/busybox.scm @@ -22,6 +22,7 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages) #:use-module (gnu packages admin) @@ -132,11 +133,11 @@ any small or embedded system.") "00aw9d809wj1bqlb2fsssdgz7rj0363ya14py0gfdm0rkp98zcpa")))) (build-system gnu-build-system) (arguments - '(#:phases + `(#:phases (modify-phases %standard-phases (add-before 'configure 'set-environment-variables (lambda _ - (setenv "CC" (which "gcc")) + (setenv "CC" ,(cc-for-target)) (setenv "HOSTCC" (which "gcc")) #t)) (replace 'configure |