gnu: bash-light: Allow cross-compilation.

* gnu/packages/bash.scm (bash-light): Add (guix build gnu-cross-build)
  to #:modules when (%current-target-system) is true.
  Add `bash_cv_job_control_missing=no' to #:configure-flags
  when (%current-target-system) is true.
This commit is contained in:
Ludovic Courtès 2013-06-05 17:40:57 +02:00
parent a3e69bb892
commit 0e999137e9
1 changed files with 10 additions and 3 deletions

View File

@ -106,8 +106,11 @@ modification.")
(let ((args `(#:modules ((guix build gnu-build-system)
(guix build utils)
(srfi srfi-1)
(srfi srfi-26))
,@(package-arguments bash))))
(srfi srfi-26)
,@(if (%current-target-system)
'((guix build gnu-cross-build))
'()))
,@(package-arguments bash))))
(substitute-keyword-arguments args
((#:configure-flags flags)
`(list "--without-bash-malloc"
@ -116,4 +119,8 @@ modification.")
"--disable-help-builtin"
"--disable-progcomp"
"--disable-net-redirections"
"--disable-nls")))))))
"--disable-nls"
,@(if (%current-target-system)
'("bash_cv_job_control_missing=no")
'()))))))))