scripts: also prepare include symlink to sysroot/include
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Apr 20 09:58:41 2010 +0200 (2010-04-20)
changeset 19280535b588679a
parent 1927 aede9b9a2ffa
child 1929 f5d5e279af95
scripts: also prepare include symlink to sysroot/include
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Mon Apr 19 23:42:31 2010 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Tue Apr 20 09:58:41 2010 +0200
     1.3 @@ -314,10 +314,13 @@
     1.4      CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib"
     1.5      CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
     1.6      CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
     1.7 +    CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/include"
     1.8  
     1.9      if [ "${CT_USE_SYSROOT}" = "y" ]; then
    1.10 -      # Prevent gcc from installing its libraries outside of the sys-root
    1.11 -      CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
    1.12 +        # Prevent gcc from installing its libraries outside of the sys-root
    1.13 +        CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
    1.14 +        # Prevent libc from installing its headers outside of the sysroot
    1.15 +        CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/usr/include" "${CT_PREFIX_DIR}/${CT_TARGET}/include"
    1.16      fi
    1.17  
    1.18      # Now, in case we're 64 bits, just have lib64/ be a symlink to lib/