summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-04-10 16:05:59 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-04-10 16:05:59 (GMT)
commitbe398a90312bd45236bd162208de7e5e1ac14ca1 (patch)
tree707ba984c6bf91db4bfcaf6f364502783abc1299 /scripts
parent0cff389fe110267dfcb4686fbdf281b34d11c2a1 (diff)
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/buildToolchain.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/buildToolchain.sh b/scripts/buildToolchain.sh
index dff1f6f..bfbf88d 100644
--- a/scripts/buildToolchain.sh
+++ b/scripts/buildToolchain.sh
@@ -72,13 +72,21 @@ case "${CT_KERNEL},${CT_CANADIAN}" in
*) 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