wok rev 10352

bash: make it cross compile!
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 22 22:38:05 2011 +0200 (2011-05-22)
parents 53b83e72d907
children e2da6d423e51
files bash/receipt
line diff
     1.1 --- a/bash/receipt	Sun May 22 16:34:20 2011 +0000
     1.2 +++ b/bash/receipt	Sun May 22 22:38:05 2011 +0200
     1.3 @@ -10,7 +10,6 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.5  WEB_SITE="http://www.gnu.org/software/bash/"
     1.6  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     1.7 -CROSS="bug"
     1.8  
     1.9  # Rules to compile & install the temporary toolchain.
    1.10  cook_tmp_toolchain()
    1.11 @@ -25,9 +24,24 @@
    1.12  {
    1.13  	# Patch and then build.
    1.14  	cd $src
    1.15 +	# Skip tests that can not run while cross-compiling.
    1.16 +	cat > config.cache << "EOF"
    1.17 +ac_cv_func_mmap_fixed_mapped=yes
    1.18 +ac_cv_func_strcoll_works=yes
    1.19 +ac_cv_func_working_mktime=yes
    1.20 +bash_cv_func_sigsetjmp=present
    1.21 +bash_cv_getcwd_malloc=yes
    1.22 +bash_cv_job_control_missing=present
    1.23 +bash_cv_printf_a_format=yes
    1.24 +bash_cv_sys_named_pipes=present
    1.25 +bash_cv_ulimit_maxfds=yes
    1.26 +bash_cv_under_sys_siglist=yes
    1.27 +bash_cv_unusable_rtsigs=no
    1.28 +gt_cv_int_divbyzero_sigfpe=yes
    1.29 +EOF
    1.30  	./configure \
    1.31 -		--build=$HOST_SYSTEM \
    1.32 -		--host=$HOST_SYSTEM \
    1.33 +		$CONFIGURE_ARGS \
    1.34 +		--cache-file=config.cache \
    1.35  		--bindir=/bin \
    1.36  		--enable-history --enable-alias  \
    1.37  		--disable-nls --without-bash-malloc \