summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
Diffstat (limited to 'rules')
-rw-r--r--rules/cross-ecj.make7
1 files changed, 7 insertions, 0 deletions
diff --git a/rules/cross-ecj.make b/rules/cross-ecj.make
index 4df5b52..f61b83d 100644
--- a/rules/cross-ecj.make
+++ b/rules/cross-ecj.make
@@ -14,7 +14,11 @@
#
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--)
+ $(warning *** gcj is mandatory to build a java cross compiler)
$(warning *** please install gcj)
$(error )
endif
@@ -71,6 +75,9 @@ $(STATEDIR)/cross-ecj.compile:
$(STATEDIR)/cross-ecj.install:
@$(call targetinfo)
+ if [ \! -x "$$(which $(GNU_BUILD)-gcj)" ]; then \
+ ln -sf $$(which gcj) $(PTXCONF_SYSROOT_HOST)/bin/$(GNU_BUILD)-gcj; \
+ fi
@$(call touch)
# ----------------------------------------------------------------------------