summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/cross-ecj.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/cross-ecj.make b/rules/cross-ecj.make
index f61b83d..83a3286 100644
--- a/rules/cross-ecj.make
+++ b/rules/cross-ecj.make
@@ -17,7 +17,7 @@ CROSS_PACKAGES-$(PTXCONF_CROSS_ECJ) += cross-ecj
#
# gcj or <host>-gcj is mandatory
#
-ifeq ($(PTXCONF_CROSS_ECJ)-$(shell which gcj)-$(shell which $(GNU_BUILD)-gcj),y--)
+ifeq ($(PTXCONF_CROSS_ECJ)-$(shell which gcj 2>/dev/null)-$(shell which $(GNU_BUILD)-gcj 2>/dev/null),y--)
$(warning *** gcj is mandatory to build a java cross compiler)
$(warning *** please install gcj)
$(error )