summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-29 22:09:55 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-29 22:09:55 (GMT)
commit0cdb819a4e1030460f9c852224d08f866e89ddd1 (patch)
tree472b316a9f7b36c0f8ef429850b98e90700866b8
parentc310dd7605afd9e167b0a5bd22048d953aa8dff1 (diff)
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(-)
-rw-r--r--scripts/crosstool-NG.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in
index 1c468f4..023c8c6 100644
--- a/scripts/crosstool-NG.sh.in
+++ b/scripts/crosstool-NG.sh.in
@@ -350,11 +350,17 @@ if [ -z "${CT_RESTART}" ]; then
printf "#${BANG}${CT_SHELL}\nexec '${where}' \"\${@}\"\n" >"${CT_PREFIX_DIR}/bin/${!v}-${tool}"
CT_DoExecLog ALL chmod 700 "${CT_PREFIX_DIR}/bin/${!v}-${tool}"
else
- # We'll at least need some of them...
case "${tool}" in
+ # We'll at least need some of them...
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
+ gcj)
+ CT_TestAndAbort "Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : either needed!" "${CT_CC_LANG_JAVA}" = "y"
+ ;;
+ # If any other is missing, only warn at low level
*)
# It does not deserve a WARN level.
CT_DoLog DEBUG " Missing: '${t}${tool}${!s}' or '${t}${tool}' or '${tool}' : not required."