From b2e309882732f3566f0459b0654b99b3e9bf9d25 Mon Sep 17 00:00:00 2001 From: Haiqing Bai Date: Thu, 2 Nov 2017 16:33:12 +0800 Subject: openjdk-8-native, icedtea7-native: use JAVA_TOOL_OPTIONS from environment Solution on how to be able to build openjdk for a build host that need the environment variable JAVA_TOOL_OPTIONS. Use JAVA_TOOL_OPTIONS from environment. On some machines this is needed in order to start java when the amount of RAM is limited for the user. Author: Peter Bergin Signed-off-by: Haiqing Bai Signed-off-by: Haiqing Bai Signed-off-by: Otavio Salvador --- recipes-core/openjdk/openjdk-8-native.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'recipes-core/openjdk/openjdk-8-native.inc') diff --git a/recipes-core/openjdk/openjdk-8-native.inc b/recipes-core/openjdk/openjdk-8-native.inc index fd97eff..20e1743 100644 --- a/recipes-core/openjdk/openjdk-8-native.inc +++ b/recipes-core/openjdk/openjdk-8-native.inc @@ -9,6 +9,8 @@ DEPENDS = "\ ca-certificates-native openssl-native coreutils-native \ " +SRC_URI_append += "file://handle_extra_output.patch" + PACKAGECONFIG ??= "" PACKAGECONFIG[x11] = "--with-x,,libx11-native xproto-native libxt-native libxext-native libxrender-native" PACKAGECONFIG[cups] = "--with-cups,,cups" @@ -47,6 +49,14 @@ EXTRA_OEMAKE_append = ' \ images \ ' +do_configure_prepend() { + export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" +} + +do_compile_prepend() { + export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" +} + do_compile_append() { set -x mkdir -p ${B}/certs -- cgit v1.2.3-54-g00ecf