summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-10 10:14:24 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-09-10 10:14:24 (GMT)
commitab9b5d109e4c7e794a91977c5bfcf77023726efc (patch)
treec74f4e3bf75e4d64193287f540189f651eb07cce
parent3fcdd28e048a0b5333175509d119c7450b918ca9 (diff)
scripts: hack-in lib32->lib symlinks
Some archs (eg. ppc64 with n32 ABI) will install their variants in lib32/ instead of lib/, so do for lib32 as we do for lib64->lib symlinks. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r--scripts/crosstool-NG.sh.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index b7148a1..2d28c3e 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -331,11 +331,19 @@ if [ -z "${CT_RESTART}" ]; then
# Now, in case we're 64 bits, just have lib64/ be a symlink to lib/
# so as to have all libraries in the same directory (we can do that
# because we are *not* multilib).
+ # Mips64 with n32 emulation install its libs in lib32, so also prepare
+ # these symlinks
+ # Not all the symlinks are necessary, but better safe than sorry...
if [ "${CT_ARCH_64}" = "y" ]; then
- CT_DoExecLog ALL ln -sf "lib" "${CT_PREFIX_DIR}/lib64"
- CT_DoExecLog ALL ln -sf "lib" "${CT_SYSROOT_DIR}/lib64"
- CT_DoExecLog ALL ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64"
- CT_DoExecLog ALL ln -sf "lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64"
+ for d in \
+ "${CT_PREFIX_DIR}" \
+ "${CT_SYSROOT_DIR}" \
+ "${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"
+ done
fi
# Determine build system if not set by the user