Work around build failures with Poudriere. We have to limit max heap size

when building 32-bit targets on a 64-bit host for some unknown reason.
This commit is contained in:
Jung-uk Kim
2015-12-10 19:37:07 +00:00
parent af65c31a00
commit 5b1ddddad1

View File

@@ -270,6 +270,12 @@ AUTOCONF_ARGS= -I . -o generated-configure.sh generated-configure.ac
.include <bsd.port.pre.mk>
.if ${ARCH:Marmv6*} || ${ARCH} == "i386"
# XXX We must limit max heap size for 32-bit targets.
CONFIGURE_ARGS+= --with-boot-jdk-jvmargs="-Xmx768m"
MAKE_ENV+= JAVADOC_CMD_MEM="-Xmx768m"
.endif
.if ${ARCH} == "armv6"
# From NetBSD http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/lang/openjdk7/hacks.mk
# Workaround incorrect constant folding of subnormals in javac when the FPU