From 0cdb819a4e1030460f9c852224d08f866e89ddd1 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Thu, 29 Jan 2009 22:09:55 +0000 Subject: 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(-) 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." -- cgit v0.10.2-6-g49f6