summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/dependencies/dependencies.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh
index 88e5ad23b4..a9c5b311ce 100755
--- a/support/dependencies/dependencies.sh
+++ b/support/dependencies/dependencies.sh
@@ -189,6 +189,13 @@ fi
if grep -q ^BR2_NEEDS_HOST_JAVA=y $BR2_CONFIG ; then
check_prog_host "java"
+ JAVA_GCJ=$(java -version 2>&1 | grep gcj)
+ if [ ! -z "$JAVA_GCJ" ] ; then
+ echo
+ echo "$JAVA_GCJ is not sufficient to compile your package selection."
+ echo "Please install an OpenJDK/IcedTea/Oracle Java."
+ exit 1 ;
+ fi
fi
if grep -q ^BR2_NEEDS_HOST_JAVAC=y $BR2_CONFIG ; then
OpenPOWER on IntegriCloud