aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-06-05 17:40:57 +0200
committerLudovic Courtès <ludo@gnu.org>2013-06-05 17:40:57 +0200
commit0e999137e9d2f9510d48af322ad3f0741cef9bb7 (patch)
tree7aad9865fe64c5ae25a9d5283010713491ae9d89
parenta3e69bb892a20a2f2fd034dfefc0382236e4981b (diff)
downloadguix-0e999137e9d2f9510d48af322ad3f0741cef9bb7.tar
guix-0e999137e9d2f9510d48af322ad3f0741cef9bb7.tar.gz
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.
-rw-r--r--gnu/packages/bash.scm13
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm
index 637c098604..bf51403f1a 100644
--- a/gnu/packages/bash.scm
+++ b/gnu/packages/bash.scm
@@ -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")
+ '()))))))))