wok rev 10030

gcc: use CONFIGURE_ARGS so we can cross compile from --build system for --host system (Tank: i686 --> i486)
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 01:50:57 2011 +0200 (2011-05-20)
parents cc4ff3002e6a
children fcc533f679e7
files gcc/receipt
line diff
     1.1 --- a/gcc/receipt	Fri May 20 01:21:08 2011 +0200
     1.2 +++ b/gcc/receipt	Fri May 20 01:50:57 2011 +0200
     1.3 @@ -112,7 +112,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -	
     1.8 +
     1.9  	# Package slitaz-toolchain use 'cook --options' when rebuilding
    1.10  	# the full SliTaz toolchain.
    1.11  	[ "$2" == "--first-pass" ] && opt=$2
    1.12 @@ -131,15 +131,13 @@
    1.13  				--libexecdir=/usr/lib \
    1.14  				--disable-nls \
    1.15  				--enable-shared \
    1.16 -				--enable-languages=c \
    1.17 +				--enable-languages=c,c++ \
    1.18  				--disable-multilib \
    1.19  				--disable-libstdcxx-pch \
    1.20  				--enable-__cxa_atexit \
    1.21  				--enable-clocale=gnu \
    1.22  				--enable-threads=posix \
    1.23 -				--build=$BUILD_HOST \
    1.24 -				--host=$BUILD_HOST \
    1.25 -				--target=$BUILD_HOST &&
    1.26 +				$CONFIGURE_ARGS &&
    1.27  			make && make install ;;
    1.28  		*)
    1.29  			# Used by default to produce a full featured GCC compiler.
    1.30 @@ -156,9 +154,7 @@
    1.31  				--enable-lto \
    1.32  				--enable-threads=posix \
    1.33  				--with-tune=$ARCH \
    1.34 -				--build=$BUILD_HOST \
    1.35 -				--host=$BUILD_HOST \
    1.36 -				--target=$BUILD_HOST &&
    1.37 +				$CONFIGURE_ARGS &&
    1.38  			make && make install ;;
    1.39  	esac
    1.40  }