scripts/crosstool-NG.sh.in
changeset 1180 734db80cc9b9
parent 1176 8508ec77df4c
child 1189 5c20d52c8270
     1.1 --- a/scripts/crosstool-NG.sh.in	Thu Jan 29 22:09:55 2009 +0000
     1.2 +++ b/scripts/crosstool-NG.sh.in	Sat Jan 31 17:38:26 2009 +0000
     1.3 @@ -255,8 +255,11 @@
     1.4      fi
     1.5  
     1.6      # Prepare the 'lib' directories in sysroot, else the ../lib64 hack used by
     1.7 -    # 32 -> 64 bit crosscompilers won't work, and build of final gcc will fail with
     1.8 -    #  "ld: cannot open crti.o: No such file or directory"
     1.9 +    # 32 -> 64 bit crosscompilers won't work, and build of final gcc will fail
    1.10 +    # with: "ld: cannot open crti.o: No such file or directory"
    1.11 +    # Also prepare the lib directory in the install dir, else some 64 bit archs
    1.12 +    # won't build
    1.13 +    CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib"
    1.14      CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
    1.15      CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
    1.16  
    1.17 @@ -267,6 +270,7 @@
    1.18      # so as to have all libraries in the same directory (we can do that
    1.19      # because we are *not* multilib).
    1.20      if [ "${CT_ARCH_64}" = "y" ]; then
    1.21 +        CT_DoExecLog ALL ln -sf "lib" "${CT_PREFIX_DIR}/lib64"
    1.22          CT_DoExecLog ALL ln -sf "lib" "${CT_SYSROOT_DIR}/lib64"
    1.23          CT_DoExecLog ALL ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64"
    1.24          CT_DoExecLog ALL ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64"