# HG changeset patch # User Remy Bohmer # Date 1271713351 -7200 # Node ID aede9b9a2ffaeb4db74df7687eebcc26902d72d1 # Parent e6a9a4f36645319fe8c6a930ef50d1b59852ed6f scripts: check g++ only for host g++ is only needed when building additonal libs on the HOST, so check wheter g++ is available for the HOST compiler only Signed-off-by: Bart vdr. Meulen [Yann E. MORIN: fix space damage] Signed-off-by: "Yann E. MORIN" diff -r e6a9a4f36645 -r aede9b9a2ffa scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Fri Apr 09 21:04:37 2010 +0200 +++ b/scripts/crosstool-NG.sh.in Mon Apr 19 23:42:31 2010 +0200 @@ -421,11 +421,15 @@ else case "${tool}" in # We'll at least need some of them... - ar|as|gcc|g++|ld|nm|objcopy|objdump|ranlib) + ar|as|gcc|ld|nm|objcopy|objdump|ranlib) CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" ;; # Some are conditionnally required # Add them in alphabetical (C locale) ordering + g++) + # g++ (needed for companion lib), only needed for HOST + CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${m}" = "HOST" + ;; gcj) CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y" ;;