diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2010-04-19 21:42:31 (GMT) |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2010-04-19 21:42:31 (GMT) |
commit | 9815852ae0f032964e553d5d7e972e5fd652e917 (patch) | |
tree | 93f736f7d93e70e5ed58aa07f29f8f60d4cccffd /scripts/crosstool-NG.sh.in | |
parent | 9c6c090d7b6f5a03213b8ac6bd33a5cb812ec4c4 (diff) |
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>
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r-- | scripts/crosstool-NG.sh.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index d4c8a7f..e16eb03 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -421,11 +421,15 @@ if [ -z "${CT_RESTART}" ]; then 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" ;; |