gnu: cross-base: Add cross arguments to hurd derivatives.
* gnu/packages/cross-base.scm (cross-kernel-headers*): Add --build and --host to xhurd-headers and xhurd-minimal. Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
a16a9c5a7b
commit
9a787edb9c
|
@ -458,6 +458,13 @@ the base compiler. Use XBINUTILS as the associated cross-Binutils."
|
|||
(name (string-append (package-name hurd-headers)
|
||||
"-cross-" target))
|
||||
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments hurd-headers)
|
||||
((#:configure-flags flags)
|
||||
`(cons* ,(string-append "--build=" (%current-system))
|
||||
,(string-append "--host=" target)
|
||||
,flags))))
|
||||
|
||||
(native-inputs `(("cross-gcc" ,xgcc)
|
||||
("cross-binutils" ,xbinutils)
|
||||
("cross-mig" ,xmig)
|
||||
|
@ -506,6 +513,10 @@ the base compiler. Use XBINUTILS as the associated cross-Binutils."
|
|||
(guix build utils)
|
||||
(srfi srfi-26))
|
||||
,@(package-arguments hurd-minimal))
|
||||
((#:configure-flags flags)
|
||||
`(cons* ,(string-append "--build=" (%current-system))
|
||||
,(string-append "--host=" target)
|
||||
,flags))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
(add-before 'configure 'set-cross-headers-path
|
||||
|
|
Reference in New Issue