cookutils rev 447
cross x86_64: we need glibc headers to compile gcc-static
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 30 14:57:34 2012 +0000 (2012-05-30) |
parents | 7a130d01ba39 |
children | f14976de5f5a |
files | cross |
line diff
1.1 --- a/cross Tue May 29 14:23:13 2012 +0000 1.2 +++ b/cross Wed May 30 14:57:34 2012 +0000 1.3 @@ -119,6 +119,23 @@ 1.4 make ARCH=$ARCH headers_install INSTALL_HDR_PATH=$sysroot/usr 1.5 } 1.6 1.7 +# 2.1 Glibc headers needed to compile x86_64 gcc-static. 1.8 +glibc_headers() { 1.9 + init_compile 1.10 + echo "Extracting: $GLIBC_TARBALL" 1.11 + tar xjf $SRC/$GLIBC_TARBALL 1.12 + rm -rf glibc-headers 1.13 + mkdir glibc-headers && cd glibc-headers 1.14 + ../glibc-$GLIBC_VERSION/configure \ 1.15 + --prefix=/usr \ 1.16 + --host=$TARGET \ 1.17 + --with-headers=$sysroot/usr/include \ 1.18 + --without-cvs \ 1.19 + --disable-sanity-checks \ 1.20 + --enable-kernel=2.6.32 && 1.21 + make -k install-headers install_root=$sysroot 1.22 +} 1.23 + 1.24 # 3. GCC static (first pass) 1.25 gcc_static() { 1.26 init_compile 1.27 @@ -369,10 +386,12 @@ 1.28 binutils) 1.29 rm -f $logdir/binutils.log 1.30 binutils 2>&1 | tee $logdir/binutils.log ;; 1.31 + linux-headers) 1.32 + linux_headers 2>&1 | tee $logdir/linux-headers.log ;; 1.33 + glibc-headers) 1.34 + glibc_headers 2>&1 | tee $logdir/glibc-headers.log ;; 1.35 gcc-static) 1.36 gcc_static 2>&1 | tee $logdir/gcc-static.log ;; 1.37 - linux-headers) 1.38 - linux_headers 2>&1 | tee $logdir/linux-headers.log ;; 1.39 glibc) 1.40 glibc 2>&1 | tee $logdir/glibc.log ;; 1.41 eglibc) 1.42 @@ -386,6 +405,9 @@ 1.43 echo "Compile start: $(date)" | tee $logdir/compile.log 1.44 download_src 1.45 binutils 2>&1 | tee $logdir/binutils.log 1.46 + case "$ARCH" in 1.47 + x86_64) glibc_headers 2>&1 | tee $logdir/glibc-headers.log ;; 1.48 + esac 1.49 gcc_static 2>&1 | tee $logdir/gcc-static.log 1.50 linux_headers 2>&1 | tee $logdir/linux-headers.log 1.51 case "$ARCH" in