path: root/scripts
diff options
authorYann E. MORIN" <>2011-04-14 22:22:42 (GMT)
committerYann E. MORIN" <>2011-04-14 22:22:42 (GMT)
commit21247bddbf41edc0c680482f7ed1fed310b26afb (patch)
tree1e9087db4210b2df3c5dd3e3d87718d9fa868434 /scripts
parent5de61c803292614ecb8a8aaa7c0e900341dbae52 (diff)
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" <>
Diffstat (limited to 'scripts')
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/build/ b/scripts/build/
index c1f8313..ab297ad 100644
--- a/scripts/build/
+++ b/scripts/build/
@@ -114,18 +114,8 @@ do_finish() {
# The symlinks are needed only during the build process.
# The final gcc will still search those dirs, but will also search
# the standard lib/ dirs, so we can get rid of the symlinks
- for d in \
- "${CT_PREFIX_DIR}" \
- ; do
- CT_DoExecLog ALL rm -f "${d}/lib32"
- CT_DoExecLog ALL rm -f "${d}/lib64"
- done
- # Also remove the lib/ symlink out-side of sysroot
- if [ "${CT_USE_SYSROOT}" = "y" ]; then
- CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
- fi
+ CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib32"
+ CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib64"