If compiling the Java frontend, we'll require a native gcj, but only in this case.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jan 29 22:09:55 2009 +0000 (2009-01-29)
changeset 11768508ec77df4c
parent 1175 417b32da90bf
child 1177 748c418d3b6a
If compiling the Java frontend, we'll require a native gcj, but only in this case.

/trunk/scripts/crosstool-NG.sh.in | 8 7 1 0 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
scripts/crosstool-NG.sh.in
     1.1 --- a/scripts/crosstool-NG.sh.in	Thu Jan 29 19:00:08 2009 +0000
     1.2 +++ b/scripts/crosstool-NG.sh.in	Thu Jan 29 22:09:55 2009 +0000
     1.3 @@ -350,11 +350,17 @@
     1.4                  printf "#${BANG}${CT_SHELL}\nexec '${where}' \"\${@}\"\n" >"${CT_PREFIX_DIR}/bin/${!v}-${tool}"
     1.5                  CT_DoExecLog ALL chmod 700 "${CT_PREFIX_DIR}/bin/${!v}-${tool}"
     1.6              else
     1.7 -                # We'll at least need some of them...
     1.8                  case "${tool}" in
     1.9 +                    # We'll at least need some of them...
    1.10                      ar|as|gcc|ld|nm|objcopy|objdump|ranlib)
    1.11                          CT_Abort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!"
    1.12                          ;;
    1.13 +                    # Some are conditionnally required
    1.14 +                    # Add them in alphabetical (C locale) ordering
    1.15 +                    gcj)
    1.16 +                        CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"
    1.17 +                        ;;
    1.18 +                    # If any other is missing, only warn at low level
    1.19                      *)
    1.20                          # It does not deserve a WARN level.
    1.21                          CT_DoLog DEBUG "  Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : not required."