public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] scripts: get rid of all lib32 and lib64 symlinks
@ 2012-01-17  6:56 Zhenqiang Chen
  0 siblings, 0 replies; only message in thread
From: Zhenqiang Chen @ 2012-01-17  6:56 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-17  6:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-17  6:56 [PATCH] scripts: get rid of all lib32 and lib64 symlinks Zhenqiang Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).