cookutils rev 454
cross: glibc create lib64 lib symlinks (that fix GCC final build)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 01 18:44:44 2012 +0200 (2012-06-01) |
parents | e0aecd9c55e9 |
children | 8e43a0f15aa0 |
files | cross |
line diff
1.1 --- a/cross Thu May 31 15:37:15 2012 +0200 1.2 +++ b/cross Fri Jun 01 18:44:44 2012 +0200 1.3 @@ -155,16 +155,6 @@ 1.4 echo "Extracting: $GCC_TARBALL" 1.5 tar xjf $SRC/$GCC_TARBALL 1.6 echo "Configure: $GCC_STATIC_ARGS" 1.7 - # Arch fixes and work around 1.8 - case "$ARCH" in 1.9 - x86_64) 1.10 - # GCC wants Glib headers in cross environment (not tested 1.11 - # with sysroot) Should we install glibc-headers before ? 1.12 - echo "Try with eglibc or install glibc-headers first" 1.13 - #rm -f $tools/$TARGET/include 1.14 - #ln -s /usr/include $tools/$TARGET/include 1.15 - ;; 1.16 - esac 1.17 rm -rf gcc-static 1.18 mkdir gcc-static && cd gcc-static 1.19 ../gcc-$GCC_VERSION/configure \ 1.20 @@ -232,9 +222,13 @@ 1.21 $GLIBC_ARGS && 1.22 make || exit 1 1.23 make install_root=$sysroot install 1.24 - # Work around to let GCC find Glibc headers. 1.25 - #cd $sysroot 1.26 - #ln -s usr/include sys-include 1.27 + # Symlink lib64 to lib 1.28 + case "$ARCH" in 1.29 + x86_64) 1.30 + rm -f $sysroot/lib $sysroot/usr/lib 1.31 + cd $sysroot && ln -s lib64 lib 1.32 + cd usr && ln -s lib64 lib ;; 1.33 + esac 1.34 echo "cross: glibc compiled on: $(date)" 1.35 } 1.36