# HG changeset patch # User "Yann E. MORIN" # Date 1284220554 -7200 # Node ID 24aacb93191d95d8291e32e327c3f5ea4040276c # Parent 75ee9a87c0e46868257283ae775d3df34bd63b51 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" diff -r 75ee9a87c0e4 -r 24aacb93191d scripts/build/internals.sh --- a/scripts/build/internals.sh Fri Sep 10 12:14:24 2010 +0200 +++ b/scripts/build/internals.sh Sat Sep 11 17:55:54 2010 +0200 @@ -141,5 +141,25 @@ # 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 }