summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-11 15:55:54 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-11 15:55:54 (GMT)
commitdae205737f585e8fdc6430d68f4d1655e3f71d19 (patch)
tree1964445fd39ec4c66edfca7ef1d2129ea540886c /scripts/build
parentab9b5d109e4c7e794a91977c5bfcf77023726efc (diff)
scripts/internal: cleanup build symlinks
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. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/internals.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 2457d73..eae1123 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -141,5 +141,25 @@ do_finish() {
# Remove headers installed by native companion libraries
CT_DoForceRmdir "${CT_PREFIX_DIR}/include"
+ # Remove the lib* symlinks, now:
+ # 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}" \
+ "${CT_SYSROOT_DIR}" \
+ "${CT_SYSROOT_DIR}/usr" \
+ "${CT_PREFIX_DIR}/${CT_TARGET}" \
+ ; do
+ CT_DoExecLog ALL rm -f "${d}/lib32"
+ CT_DoExecLog ALL rm -f "${d}/lib64"
+ done
+
+ # Also remove the include/ and lib/ symlinks out-side of sysroot
+ if [ "${CT_USE_SYSROOT}" = "y" ]; then
+ CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
+ CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/${CT_TARGET}/include"
+ fi
+
CT_EndStep
}