cookutils rev 442

cross: fix gcc-final
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 29 08:15:45 2012 +0000 (2012-05-29)
parents f2202b3af38a
children 38f5bf899513
files cross
line diff
     1.1 --- a/cross	Tue May 29 08:03:41 2012 +0000
     1.2 +++ b/cross	Tue May 29 08:15:45 2012 +0000
     1.3 @@ -102,7 +102,7 @@
     1.4  		--enable-threads \
     1.5  		--enable-targets=$BUILD_SYSTEM \
     1.6  		--with-sysroot=$sysroot \
     1.7 -		$BINUTILS_ARGS
     1.8 +		$BINUTILS_ARGS &&
     1.9  	make || exit 1
    1.10  	make install
    1.11  	echo "cross: binutils compiled on: $(date)"
    1.12 @@ -149,7 +149,7 @@
    1.13  		--without-headers \
    1.14  		--with-newlib \
    1.15  		--with-sysroot=$sysroot \
    1.16 -		$GCC_STATIC_ARGS
    1.17 +		$GCC_STATIC_ARGS &&
    1.18  	make all-gcc all-target-libgcc || exit 1
    1.19  	make install-gcc install-target-libgcc
    1.20  	echo "cross: gcc-static compiled on: $(date)"
    1.21 @@ -196,7 +196,7 @@
    1.22  		--with-headers=$sysroot/usr/include \
    1.23  		--with-binutils=$tools/bin \
    1.24  		--enable-kernel=2.6.32 \
    1.25 -		$GLIBC_ARGS
    1.26 +		$GLIBC_ARGS &&
    1.27  	make || exit 1
    1.28  	make install_root=$sysroot install
    1.29  	# Work around to let GCC find Glibc headers.
    1.30 @@ -250,7 +250,7 @@
    1.31  		--without-gd \
    1.32  		--without-cvs \
    1.33  		--cache-file=config.cache \
    1.34 -		$EGLIBC_ARGS
    1.35 +		$EGLIBC_ARGS &&
    1.36  	make || exit 1
    1.37  	make install_root=$sysroot install
    1.38  }
    1.39 @@ -282,7 +282,8 @@
    1.40  		--disable-werror \
    1.41  		--with-pkgversion="SliTaz" \
    1.42  		--with-bugurl="https://bugs.slitaz.org/" \
    1.43 -		$GCC_FINAL_ARGS $sysroot
    1.44 +		--with-sysroot=$sysroot \
    1.45 +		$GCC_FINAL_ARGS &&
    1.46  	make AS_FOR_TARGET="${TARGET}-as" \
    1.47  		LD_FOR_TARGET="${TARGET}-ld" || exit 1
    1.48  	make install