scripts/internals: do not remove lib{32,64}/ symlinks after build
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Apr 15 00:22:42 2011 +0200 (2011-04-15)
changeset 2544751c3f735ada
parent 2543 0e8ff5707383
child 2545 484f5cf55902
scripts/internals: do not remove lib{32,64}/ symlinks after build

During the build, we create lib{32,64}/ symlinks out of the sysroot.
In some cases (eg. mingw32 target), these symlinks are still required
when running the toolchain. For other combinations, the symlinks are
without incidence, so they can be safely kept after the build.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/internals.sh
     1.1 --- a/scripts/build/internals.sh	Sun Jul 10 00:02:05 2011 +0200
     1.2 +++ b/scripts/build/internals.sh	Fri Apr 15 00:22:42 2011 +0200
     1.3 @@ -114,18 +114,8 @@
     1.4      # The symlinks are needed only during the build process.
     1.5      # The final gcc will still search those dirs, but will also search
     1.6      # the standard lib/ dirs, so we can get rid of the symlinks
     1.7 -    for d in                            \
     1.8 -        "${CT_PREFIX_DIR}"              \
     1.9 -        "${CT_PREFIX_DIR}/${CT_TARGET}" \
    1.10 -    ; do
    1.11 -        CT_DoExecLog ALL rm -f "${d}/lib32"
    1.12 -        CT_DoExecLog ALL rm -f "${d}/lib64"
    1.13 -    done
    1.14 -
    1.15 -    # Also remove the lib/ symlink out-side of sysroot
    1.16 -    if [ "${CT_USE_SYSROOT}" = "y" ]; then
    1.17 -        CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
    1.18 -    fi
    1.19 +    CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib32"
    1.20 +    CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib64"
    1.21  
    1.22      CT_EndStep
    1.23  }