cookutils rev 418

cross: better x86_64 support and create prebuilt toolchain
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 15 00:27:37 2012 +0200 (2012-05-15)
parents 0f2a3fcd0e24
children 97a80eb3cf19
files cross
line diff
     1.1 --- a/cross	Mon May 14 15:14:13 2012 +0200
     1.2 +++ b/cross	Tue May 15 00:27:37 2012 +0200
     1.3 @@ -157,11 +157,13 @@
     1.4  			rm -rf glibc-$GLIBC_VERSION/ports
     1.5  			tar xjf $SRC/glibc-ports-$GLIBC_VERSION.tar.bz2
     1.6  			mv glibc-ports-$GLIBC_VERSION glibc-$GLIBC_VERSION/ports ;;
     1.7 +		x86_64)
     1.8 +			ccflags="-m64" ;;
     1.9  	esac
    1.10  	#echo "CFLAGS: $CFLAGS"
    1.11  	mkdir -p glibc-build && cd glibc-build
    1.12  	BUILD_CC="gcc" \
    1.13 -	CC="$PREFIX/bin/$TARGET-gcc" \
    1.14 +	CC="${TARGET}-gcc $ccflags" \
    1.15  	libc_cv_forced_unwind=yes \
    1.16  	libc_cv_c_cleanup=yes \
    1.17  	../glibc-$GLIBC_VERSION/configure \