wok-current rev 12711

cross-arm-glibc: improve receipt, dont have add-ons and --disable-sanity-checks for now
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 04 16:09:03 2012 +0200 (2012-05-04)
parents 8e206a5a6836
children 28402c9d6dd4
files cross-arm-glibc/receipt
line diff
     1.1 --- a/cross-arm-glibc/receipt	Fri May 04 15:59:16 2012 +0200
     1.2 +++ b/cross-arm-glibc/receipt	Fri May 04 16:09:03 2012 +0200
     1.3 @@ -14,10 +14,10 @@
     1.4  BUILD_DEPENDS="linux-arm-api-headers cross-arm-binutils cross-arm-gcc \
     1.5  autoconf bash gawk"
     1.6  
     1.7 -# Cross toolchain variables.
     1.8 +# Cross toolchain variables. We dont use CROSS_TRIPLET here, we cross build
     1.9 +# with: --build=$HOST_SYSTEM --host=$CROSS_TARGET
    1.10  CROSS_TARGET="arm-slitaz-linux-gnueabi"
    1.11  CROSS_PREFIX="/usr/cross/arm"
    1.12 -CROSS_TRIPLET="--build=$HOST_SYSTEM --host=$HOST_SYSTEM --target=$CROSS_TARGET"
    1.13  
    1.14  # CFLAGS and CXXFLAGS must not be set during the building of cross-tools.
    1.15  unset CFLAGS CXXFLAGS CONFIG_SITE
    1.16 @@ -28,9 +28,9 @@
    1.17  # Rules to configure and make the package.
    1.18  compile_rules()
    1.19  {
    1.20 -	echo "cook: make linux/version.h"
    1.21 +	echo "cook: make ARCH=arm linux/version.h"
    1.22  	cd $CROSS_PREFIX/include
    1.23 -	make linux/version.h
    1.24 +	make ARCH=arm linux/version.h
    1.25  
    1.26  	cd $src
    1.27  
    1.28 @@ -39,24 +39,23 @@
    1.29  		wget $GNU_MIRROR/$SOURCE/glibc-ports-$VERSION.tar.bz2 \
    1.30  			-O $SRC/glibc-ports-$VERSION.tar.bz2
    1.31  	fi
    1.32 -	echo "Extracting glibc-ports..."
    1.33 +	echo "Extracting: glibc-ports-$VERSION.tar.bz2"
    1.34  	tar xjf $SRC/glibc-ports-$VERSION.tar.bz2
    1.35  	mv glibc-ports-$VERSION ports
    1.36  
    1.37 -	# #define TLS_DTV_UNALLOCATED ((void *) -1l) is already in dl-tls.h
    1.38 -	#echo "#define TLS_DTV_UNALLOCATED ((void *) -1l)" \
    1.39 -	#	>> ports/sysdeps/arm/dl-tls.h
    1.40 +	mkdir ../build && cd ../build
    1.41  
    1.42 -	mkdir ../glibc-build && cd ../glibc-build
    1.43  	CC=$CROSS_PREFIX/bin/$CROSS_TARGET-gcc
    1.44  	echo "libc_cv_forced_unwind=yes" > config.cache
    1.45  	echo "libc_cv_c_cleanup=yes" >> config.cache
    1.46 +	#--enable-add-ons
    1.47  	$src/configure \
    1.48  		--prefix=$CROSS_PREFIX \
    1.49 -		--enable-add-ons \
    1.50  		--with-headers=$CROSS_PREFIX/include \
    1.51  		--with-binutils=$CROSS_PREFIX/bin \
    1.52  		--config-cache \
    1.53 +		--disable-sanity-checks \
    1.54 +		--disable-profile \
    1.55  		--build=$HOST_SYSTEM \
    1.56  		--host=$CROSS_TARGET &&
    1.57  	make && make install_root=$DESTDIR install
    1.58 @@ -67,8 +66,4 @@
    1.59  {
    1.60  	mkdir -p $fs/usr
    1.61  	cp -a $install/usr/cross $fs/usr
    1.62 -	#cd ${fs}${CROSS_PREFIX}/$CROSS_TARGET
    1.63 -	#rm -rf lib include
    1.64 -	#ln -s ../lib lib
    1.65 -	#ln -s ../include include
    1.66  }