diff options
author | Bart vdr. Meulen <bartvdrmeulen@gmail.com> | 2010-07-19 23:16:02 +0200 |
---|---|---|
committer | Bart vdr. Meulen <bartvdrmeulen@gmail.com> | 2010-07-19 23:16:02 +0200 |
commit | 25bb99693ae8a9fe34693dac5b5046c8f36d42f2 (patch) | |
tree | fdf4a69ebe5e0f1d595e2ae95332fe84822eca86 /scripts/build/cc | |
parent | ab067a92c1f217fb409dccfcf23a26179af5aafb (diff) | |
download | crosstool-ng-25bb99693ae8a9fe34693dac5b5046c8f36d42f2.tar.gz crosstool-ng-25bb99693ae8a9fe34693dac5b5046c8f36d42f2.tar.bz2 crosstool-ng-25bb99693ae8a9fe34693dac5b5046c8f36d42f2.zip |
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>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 3fb6ca09..b26a26a5 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -419,7 +419,7 @@ do_cc() { # 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}" |