[patch] correctly detect 32bit platforms
Matthias Klose
doko at ubuntu.com
Mon Oct 19 20:16:03 UTC 2015
Sorry if this is the wrong ML, but this results in hotspot build failures on
various 32bit zero targets.
common/autoconf/boot-jdk.m4 uses BUILD_NUM_BITS to check for 32bit-ness, however
this is nowhere defined. the current macro seems to be OPENJDK_BUILD_CPU_BITS.
patch checked with b87.
Matthias
-------------- next part --------------
Index: b/common/autoconf/boot-jdk.m4
===================================================================
--- a/common/autoconf/boot-jdk.m4
+++ b/common/autoconf/boot-jdk.m4
@@ -341,7 +341,7 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_AR
# Maximum amount of heap memory.
# Maximum stack size.
JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2`
- if test "x$BUILD_NUM_BITS" = x32; then
+ if test "x$OPENJDK_BUILD_CPU_BITS" = x32; then
if test "$JVM_MAX_HEAP" -gt "1100"; then
JVM_MAX_HEAP=1100
elif test "$JVM_MAX_HEAP" -lt "512"; then
More information about the hotspot-dev
mailing list