complibs: fix using static companion libraries
authorBart vdr. Meulen <bartvdrmeulen@gmail.com>
Mon Jul 19 23:16:02 2010 +0200 (2010-07-19)
changeset 20313917f2dafed1
parent 2030 7dc77b443864
child 2032 278df575fe4b
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 <bartvdrmeulen@gmail.com>
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Tue Jul 13 12:12:32 2010 +0200
     1.2 +++ b/scripts/build/cc/gcc.sh	Mon Jul 19 23:16:02 2010 +0200
     1.3 @@ -419,7 +419,7 @@
     1.4      # Create a symlink ${CT_TARGET}-cc to ${CT_TARGET}-gcc to always be able
     1.5      # to call the C compiler with the same, somewhat canonical name.
     1.6      # check whether compiler has an extension
     1.7 -    file="$( ls -1 "${CT_TARGET}/bin/${CT_TARGET}-gcc."* 2>/dev/null || true )"
     1.8 +    file="$( ls -1 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-gcc."* 2>/dev/null || true )"
     1.9      [ -z "${file}" ] || ext=".${file##*.}"
    1.10      CT_DoExecLog ALL ln -sv "${CT_TARGET}-gcc${ext}" "${CT_PREFIX_DIR}/bin/${CT_TARGET}-cc${ext}"
    1.11