diff options
author | tnn <tnn@pkgsrc.org> | 2015-03-05 13:08:18 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-03-05 13:08:18 +0000 |
commit | 5d0b7e73b01910b2c94c57358700d20d4e06e31f (patch) | |
tree | e54cdbc2ee2095312a4f4a37318fd7f15a904d27 /lang/openjdk8 | |
parent | 9dde87ebd441eb9cca4a63b466982e673c102821 (diff) | |
download | pkgsrc-5d0b7e73b01910b2c94c57358700d20d4e06e31f.tar.gz |
Unlimit virtual memory. Needs at least 3G of VA space to build on 64-bit
hosts due to -XX:CompressedClassSpaceSize being 1G by default.
Diffstat (limited to 'lang/openjdk8')
-rw-r--r-- | lang/openjdk8/hacks.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/openjdk8/hacks.mk b/lang/openjdk8/hacks.mk index 4e5f829b013..6bb16bcec2c 100644 --- a/lang/openjdk8/hacks.mk +++ b/lang/openjdk8/hacks.mk @@ -1,4 +1,4 @@ -# $NetBSD: hacks.mk,v 1.3 2015/03/05 13:02:38 tnn Exp $ +# $NetBSD: hacks.mk,v 1.4 2015/03/05 13:08:18 tnn Exp $ .if !defined(OPENJDK8_HACKS_MK) OPENJDK8_HACKS_MK= # empty @@ -12,6 +12,13 @@ post-wrapper: ${RM} -f ${BUILDLINK_DIR}/include/jmorecfg.h ${RM} -f ${BUILDLINK_DIR}/include/jpeglib.h +# Unlimit virtual memory. Needs at least 3G of VA space to build on 64-bit +# hosts due to -XX:CompressedClassSpaceSize being 1G by default. +.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) +UNLIMIT_RESOURCES+= vmemorysize +ULIMIT_CMD_vmemorysize?= ulimit -v `ulimit -H -v` +.endif + # Workaround incorrect constant folding of subnormals in javac when the FPU # does not handle subnormal arithmetic, like on ARM in Flush-to-zero mode. # These workarounds avoid underflow conditions during the bootstrap so the |