# HG changeset patch # User "Yann E. MORIN" # Date 1176221159 0 # Node ID 3a682f0237df39ecf028e70b853006660b392e1e # Parent 14938fdeaaa207a728ae0d34fde3897cad1ca42f Ah! Recent versions of binutils need some of the build system (read CT_BUILD) tools to be accessible (ar is but an example). Fix typo. diff -r 14938fdeaaa2 -r 3a682f0237df scripts/buildToolchain.sh --- a/scripts/buildToolchain.sh Tue Apr 10 16:04:56 2007 +0000 +++ b/scripts/buildToolchain.sh Tue Apr 10 16:05:59 2007 +0000 @@ -72,13 +72,21 @@ *) CT_HOST="`echo \"${CT_HOST}\" |sed -r -e 's/-/-host_/;'`";; esac +# Ah! Recent versions of binutils need some of the build system (read CT_BUILD) +# tools to be accessible (ar is but an example). Do that: +CT_DoLog EXTRA "Making build system tools available" +mkdir -p "${CT_PREFIX_DIR}/bin" +for tool in ar; do + ln -s "`which ${tool}`" "${CT_PREFIX_DIR}/bin/${CT_BUILD}-${tool}" +done + # Ha. cygwin host have an .exe suffix (extension) for executables. [ "${CT_KERNEL}" = "cygwin" ] && EXEEXT=".exe" || EXEEXT="" # Transform the ARCH into a kernel-understandable ARCH case "${CT_ARCH}" in x86) CT_KERNEL_ARCH=i386;; - ppc) CT_KERNL_ARCH=powerpc;; + ppc) CT_KERNEL_ARCH=powerpc;; *) CT_KERNEL_ARCH="${CT_ARCH}";; esac