wok-4.x rev 8631

Fix: use right display-related code into gcc
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Feb 15 03:18:48 2011 +0100 (2011-02-15)
parents ad41e83c14bc
children 9a531a816f54
files gcc/receipt
line diff
     1.1 --- a/gcc/receipt	Tue Feb 15 03:16:51 2011 +0100
     1.2 +++ b/gcc/receipt	Tue Feb 15 03:18:48 2011 +0100
     1.3 @@ -18,9 +18,9 @@
     1.4  	cd $src
     1.5  
     1.6  	# GCC requires the GMP, MPFR and MPC packages.
     1.7 -	tazwok get-src mpfr --target=$PWD/mpfr
     1.8 -	tazwok get-src gmp --target=$PWD/gmp
     1.9 -	tazwok get-src mpc-library --target=$PWD/mpc
    1.10 +	tazwok get-src mpfr --target=$PWD/mpfr || { report close-bloc; return 1; }
    1.11 +	tazwok get-src gmp --target=$PWD/gmp || { report close-bloc; return 1; }
    1.12 +	tazwok get-src mpc-library --target=$PWD/mpc || { report close-bloc; return 1; }
    1.13  
    1.14  	report step "Running compilation"
    1.15  
    1.16 @@ -38,7 +38,7 @@
    1.17  		--without-ppl --without-cloog &&
    1.18  	make &&
    1.19  	make install
    1.20 -	} || return 1
    1.21 +	} || { report close-bloc; return 1; }
    1.22  
    1.23  	# See LFS for more detais about this.
    1.24  	ln -s libgcc.a `$BUILD_HOST-gcc -print-libgcc-file-name | \
    1.25 @@ -50,7 +50,7 @@
    1.26  {
    1.27  	report open-bloc
    1.28  	cd $src
    1.29 -	patch -Np1 -i ../stuff/gcc-$VERSION-startfiles_fix-1.patch
    1.30 +	patch -Np1 -i ../stuff/gcc-$VERSION-startfiles_fix-1.patch || { report close-bloc; return 1; }
    1.31  
    1.32  	# Details about theses lines are in LFS book.
    1.33  	sed 's@\./fixinc\.sh@-c true@' -i gcc/Makefile.in
    1.34 @@ -74,9 +74,9 @@
    1.35  	fi
    1.36  	
    1.37  	# GCC requires the GMP, MPFR and MPC packages.
    1.38 -	tazwok get-src mpfr --target=$PWD/mpfr
    1.39 -	tazwok get-src gmp --target=$PWD/gmp
    1.40 -	tazwok get-src mpc-library --target=$PWD/mpc
    1.41 +	tazwok get-src mpfr --target=$PWD/mpfr || { report close-bloc; return 1; }
    1.42 +	tazwok get-src gmp --target=$PWD/gmp || { report close-bloc; return 1; }
    1.43 +	tazwok get-src mpc-library --target=$PWD/mpc || { report close-bloc; return 1; }
    1.44  
    1.45  	report step "Running compilation"
    1.46  
    1.47 @@ -96,7 +96,7 @@
    1.48  		--without-ppl --without-cloog &&
    1.49  	make &&
    1.50  	make install
    1.51 -	} || return 1
    1.52 +	} || { report close-bloc; return 1; }
    1.53  	ln -s gcc /tools/bin/cc
    1.54  	report close-bloc
    1.55  }