summaryrefslogtreecommitdiff
path: root/scripts/crosstool-NG.sh.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 17:38:26 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-31 17:38:26 (GMT)
commit04fa7e056926627f982f30e3ac9e90fb849f5224 (patch)
treee6b79f452d8373b89638914019659ad7a2d4da9c /scripts/crosstool-NG.sh.in
parent1a346ed2736e024006f406f12fa67e9b2484b089 (diff)
Further handle the lib64 -> lib symlinks.
It at least helps powerpc64 to build, and should innocuous to other archs. /trunk/scripts/crosstool-NG.sh.in | 8 6 2 0 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r--scripts/crosstool-NG.sh.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 023c8c6..0180715 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -255,8 +255,11 @@ if [ -z "${CT_RESTART}" ]; then
fi
# Prepare the 'lib' directories in sysroot, else the ../lib64 hack used by
- # 32 -> 64 bit crosscompilers won't work, and build of final gcc will fail with
- # "ld: cannot open crti.o: No such file or directory"
+ # 32 -> 64 bit crosscompilers won't work, and build of final gcc will fail
+ # with: "ld: cannot open crti.o: No such file or directory"
+ # Also prepare the lib directory in the install dir, else some 64 bit archs
+ # won't build
+ CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib"
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
@@ -267,6 +270,7 @@ if [ -z "${CT_RESTART}" ]; then
# so as to have all libraries in the same directory (we can do that
# because we are *not* multilib).
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 "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64"