From 0e999137e9d2f9510d48af322ad3f0741cef9bb7 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 5 Jun 2013 17:40:57 +0200 Subject: 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. --- gnu/packages/bash.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/packages') 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") + '())))))))) -- cgit v1.2.3