gnu: linux-libre-headers: Support cross-compilation.

* gnu/packages/linux.scm (linux-libre-headers):
  When (%current-target-system) is true, pass it as the argument to
  'build-phase'.  This fixes cross-compilation.
  Reported by Mark H. Weaver <mhw@netris.org>.
This commit is contained in:
Ludovic Courtès 2013-10-10 21:34:10 +02:00
parent b49632e793
commit fb6c2fa82e

View file

@ -102,7 +102,8 @@ (define-public linux-libre-headers
(guix build utils) (guix build utils)
(srfi srfi-1)) (srfi srfi-1))
#:phases (alist-replace #:phases (alist-replace
'build ,(build-phase (%current-system)) 'build ,(build-phase (or (%current-target-system)
(%current-system)))
(alist-replace (alist-replace
'install ,install-phase 'install ,install-phase
(alist-delete 'configure %standard-phases))) (alist-delete 'configure %standard-phases)))