diff -r d2c46e039cd8 -r d26d8cc7c460 scripts/crosstool.sh --- a/scripts/crosstool.sh Fri Jul 25 22:57:35 2008 +0000 +++ b/scripts/crosstool.sh Sun Jul 27 16:35:37 2008 +0000 @@ -350,6 +350,20 @@ mkdir -p "${CT_SYSROOT_DIR}/lib" mkdir -p "${CT_SYSROOT_DIR}/usr/lib" + # Prevent gcc from installing its libraries outside of the sys-root + ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib" + + # 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). + case "${CT_TARGET}" in + powerpc64*|ppc64*|x86_64*) + ln -sf "lib" "${CT_SYSROOT_DIR}/lib64" + ln -sf "lib" "${CT_SYSROOT_DIR}/usr/lib64" + ln -sf "sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib64" + ;; + esac + # Canadian-cross are really picky on the way they are built. Tweak the values. CT_UNIQ_BUILD=$(echo "${CT_BUILD}" |sed -r -e 's/-/-build_/') if [ "${CT_CANADIAN}" = "y" ]; then