# HG changeset patch # User "Yann E. MORIN" # Date 1245790334 -7200 # Node ID 5e3ec8c347d6b6fb1f96f0ac29b69be11d9a1d62 # Parent bfdcc6076d3be907132991bfdc962ed23f2a060e Fix creating the .../lib/ directory structure in the non-sysroot case The symbol link that is created in the sysroot directory only needs to be made when the cross compiler is build with the sysroot option Signed-off-by: Bart van der Meulen (transplanted from 0e49e6eddac4f5bbde6394eb3e6e36be75fc550c) diff -r bfdcc6076d3b -r 5e3ec8c347d6 scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Tue Jun 23 22:52:13 2009 +0200 +++ b/scripts/crosstool-NG.sh.in Tue Jun 23 22:52:14 2009 +0200 @@ -279,8 +279,10 @@ CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib" CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib" - # Prevent gcc from installing its libraries outside of the sys-root - CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib" + if [ "${CT_USE_SYSROOT}" = "y" ]; then + # Prevent gcc from installing its libraries outside of the sys-root + CT_DoExecLog ALL ln -sf "./${CT_SYSROOT_DIR_PREFIX}/sys-root/lib" "${CT_PREFIX_DIR}/${CT_TARGET}/lib" + fi # 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