scripts: check g++ only for host
authorRemy Bohmer <linux@bohmer.net>
Mon Apr 19 23:42:31 2010 +0200 (2010-04-19)
changeset 1927aede9b9a2ffa
parent 1926 e6a9a4f36645
child 1928 0535b588679a
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 <bartvdrmeulen@gmail.com>
[Yann E. MORIN: fix space damage]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Fri Apr 09 21:04:37 2010 +0200
     1.2 +++ b/scripts/crosstool-NG.sh.in	Mon Apr 19 23:42:31 2010 +0200
     1.3 @@ -421,11 +421,15 @@
     1.4              else
     1.5                  case "${tool}" in
     1.6                      # We'll at least need some of them...
     1.7 -                    ar|as|gcc|g++|ld|nm|objcopy|objdump|ranlib)
     1.8 +                    ar|as|gcc|ld|nm|objcopy|objdump|ranlib)
     1.9                          CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!"
    1.10                          ;;
    1.11                      # Some are conditionnally required
    1.12                      # Add them in alphabetical (C locale) ordering
    1.13 +                    g++)
    1.14 +                        # g++ (needed for companion lib), only needed for HOST
    1.15 +                        CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${m}" = "HOST"
    1.16 +                        ;;
    1.17                      gcj)
    1.18                          CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"
    1.19                          ;;