This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] scripts: get rid of all lib32 and lib64 symlinks


exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1326782932 -28800
# Node ID 6731bc1a8c3a48f8280ec0a8eb2b6d7bb899ee03
# Parent  f342d015191766d83bd761d6d1fb3266a5937433
scripts: get rid of all lib32 and lib64 symlinks

lib32 and lib64 are created in ${CT_PREFIX_DIR}, ${CT_SYSROOT_DIR},
${CT_SYSROOT_DIR}/usr and ${CT_PREFIX_DIR}/${CT_TARGET}.
We'd get rid all of them.

Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org>

diff -r f342d0151917 -r 6731bc1a8c3a scripts/build/internals.sh
--- a/scripts/build/internals.sh        Tue Jan 17 11:31:47 2012 +0800
+++ b/scripts/build/internals.sh        Tue Jan 17 14:48:52 2012 +0800
@@ -114,8 +114,8 @@
     # 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
-    CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib32"
-    CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/lib64"
+    CT_DoExecLog ALL find ${CT_PREFIX_DIR} -type l -name lib64 -exec rm {} \;
+    CT_DoExecLog ALL find ${CT_PREFIX_DIR} -type l -name lib32 -exec rm {} \;

     CT_EndStep
 }

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]