1.1 --- a/scripts/crosstool-NG.sh.in Tue Jun 23 22:52:13 2009 +0200
1.2 +++ b/scripts/crosstool-NG.sh.in Tue Jun 23 22:52:14 2009 +0200
1.3 @@ -296,8 +296,10 @@
1.4 CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
1.5 CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
1.6
1.7 - # Prevent gcc from installing its libraries outside of the sys-root
1.8 - CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
1.9 + if [ "${CT_USE_SYSROOT}" = "y" ]; then
1.10 + # Prevent gcc from installing its libraries outside of the sys-root
1.11 + CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib"
1.12 + fi
1.13
1.14 # Now, in case we're 64 bits, just have lib64/ be a symlink to lib/
1.15 # so as to have all libraries in the same directory (we can do that