diff options
author | Haiqing Bai <Haiqing.Bai@windriver.com> | 2017-11-02 16:33:12 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2017-12-22 10:28:27 -0200 |
commit | b2e309882732f3566f0459b0654b99b3e9bf9d25 (patch) | |
tree | c8dda7f61d9a80f2fcdb685bf4e4c446f1629a4d /recipes-core/icedtea/icedtea7-native.inc | |
parent | 03e35bf64f97980652ac532cca0ea96e730a551c (diff) | |
download | meta-java-b2e309882732f3566f0459b0654b99b3e9bf9d25.tar.gz |
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 <peter.bergin@windriver.com>
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Haiqing Bai <Haiqing.Bai@windriver.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-core/icedtea/icedtea7-native.inc')
-rw-r--r-- | recipes-core/icedtea/icedtea7-native.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index 7d625eb..d4cf7ac 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc | |||
@@ -170,6 +170,10 @@ EXTRA_OEMAKE = ' \ | |||
170 | ' | 170 | ' |
171 | 171 | ||
172 | do_compile() { | 172 | do_compile() { |
173 | # Use JAVA_TOOL_OPTIONS from environment. On some machines this is needed | ||
174 | # in order to start java when the amount of RAM is limited for the user. | ||
175 | export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}" | ||
176 | |||
173 | # OpenJDK uses slightly different names for certain arches. We need to know | 177 | # OpenJDK uses slightly different names for certain arches. We need to know |
174 | # this to create some files which are expected by the build. | 178 | # this to create some files which are expected by the build. |
175 | case "${TRANSLATED_TARGET_ARCH}" in | 179 | case "${TRANSLATED_TARGET_ARCH}" in |