# HG changeset patch # User "Yann E. MORIN" # Date 1233266995 0 # Node ID 8508ec77df4c2d0c0167c218c1fa26f0974cf706 # Parent 417b32da90bf169c78ab173581a3ac50da4a7167 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 -r 417b32da90bf -r 8508ec77df4c scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Thu Jan 29 19:00:08 2009 +0000 +++ b/scripts/crosstool-NG.sh.in Thu Jan 29 22:09:55 2009 +0000 @@ -350,11 +350,17 @@ 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."