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: fix ln issue when CT_USE_SYSROOT is not "y"


exporting patch:
# HG changeset patch
# User Zhenqiang Chen <zhenqiang.chen@linaro.org>
# Date 1326771107 -28800
# Node ID f342d015191766d83bd761d6d1fb3266a5937433
# Parent  188d58cfe7cfc11317e2605bda33e83b1aa3dddd
scripts: fix ln issue when CT_USE_SYSROOT is not "y"

When CT_USE_SYSROOT is not "y", CT_SYSROOT_DIR is
${CT_PREFIX_DIR}/${CT_TARGET}. The loop will create meaningless link
lib->lib. -n (no-dereference) can handle this case.

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

diff -r 188d58cfe7cf -r f342d0151917 scripts/crosstool-NG.sh.in
--- a/scripts/crosstool-NG.sh.in        Mon Jan 16 23:45:16 2012 +0100
+++ b/scripts/crosstool-NG.sh.in        Tue Jan 17 11:31:47 2012 +0800
@@ -329,8 +329,8 @@
         "${CT_SYSROOT_DIR}/usr"         \
         "${CT_PREFIX_DIR}/${CT_TARGET}" \
     ; do
-        CT_DoExecLog ALL ln -sf "lib" "${d}/lib32"
-        CT_DoExecLog ALL ln -sf "lib" "${d}/lib64"
+        CT_DoExecLog ALL ln -sfn "lib" "${d}/lib32"
+        CT_DoExecLog ALL ln -sfn "lib" "${d}/lib64"
     done

     # Determine build system if not set by the user

--
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]