cookutils rev 450

cross: install kernel headers in source then copy, add libc_cv_forced_unwind=yes to glibc-headers build
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 31 15:28:32 2012 +0200 (2012-05-31)
parents 19ff6f323fe4
children e8f5f3a99544
files cross
line diff
     1.1 --- a/cross	Wed May 30 21:27:14 2012 +0000
     1.2 +++ b/cross	Thu May 31 15:28:32 2012 +0200
     1.3 @@ -116,7 +116,10 @@
     1.4  	cd linux-$LINUX_VERSION
     1.5  	make mrproper
     1.6  	make ARCH=$ARCH headers_check
     1.7 -	make ARCH=$ARCH headers_install INSTALL_HDR_PATH=$sysroot/usr
     1.8 +	make ARCH=$ARCH headers_install \
     1.9 +		INSTALL_HDR_PATH=$source/linux-headers
    1.10 +	echo "Copying headers to: $sysroot/usr"
    1.11 +	cp -a $source/linux-headers/* $sysroot/usr
    1.12  }
    1.13  
    1.14  # 2.1 Glibc headers needed to compile x86_64 gcc-static.
    1.15 @@ -126,6 +129,8 @@
    1.16  	tar xjf $SRC/$GLIBC_TARBALL
    1.17  	rm -rf glibc-headers
    1.18  	mkdir glibc-headers && cd glibc-headers
    1.19 +	libc_cv_forced_unwind=yes \
    1.20 +	libc_cv_c_cleanup=yes \
    1.21  	../glibc-$GLIBC_VERSION/configure \
    1.22  		--prefix=/usr \
    1.23  		--host=$TARGET \