# HG changeset patch # User Bart vdr. Meulen # Date 1279574162 -7200 # Node ID 3917f2dafed1bb189e39f50e8506b3141926d7e1 # Parent 7dc77b443864357da1fe5945e6743f4e7609e66b complibs: fix using static companion libraries When building a cross-compiler for a target which uses a file extension for binaries the symbolic link to cc is not created correctly because the lookup of the gcc binary is done in a incorrect path Signed-off-by: Bart vdr. Meulen diff -r 7dc77b443864 -r 3917f2dafed1 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Tue Jul 13 12:12:32 2010 +0200 +++ b/scripts/build/cc/gcc.sh Mon Jul 19 23:16:02 2010 +0200 @@ -419,7 +419,7 @@ # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able # to call the C compiler with the same, somewhat canonical name. # check whether compiler has an extension - file="$( ls -1 "${CT_TARGET}/bin/${CT_TARGET}-gcc."* 2>/dev/null || true )" + file="$( ls -1 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-gcc."* 2>/dev/null || true )" [ -z "${file}" ] || ext=".${file##*.}" CT_DoExecLog ALL ln -sv "${CT_TARGET}-gcc${ext}" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc${ext}"