aboutsummaryrefslogtreecommitdiff
path: root/java/openjdk17
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2021-11-27 16:50:26 +0000
committerGreg Lewis <glewis@FreeBSD.org>2021-11-27 16:50:26 +0000
commit11b6514a0129daac85f9600d49d6420844cf96d1 (patch)
tree293f8fcb3396a6ade193b8a54886d2de73f4f706 /java/openjdk17
parent38dd7c50326050ec2fe7c4dd8f397efdd0bd5c8a (diff)
downloadports-11b6514a0129daac85f9600d49d6420844cf96d1.tar.gz
ports-11b6514a0129daac85f9600d49d6420844cf96d1.zip
Diffstat (limited to 'java/openjdk17')
-rw-r--r--java/openjdk17/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/openjdk17/Makefile b/java/openjdk17/Makefile
index 1072d7492c32..078431d0c568 100644
--- a/java/openjdk17/Makefile
+++ b/java/openjdk17/Makefile
@@ -104,8 +104,11 @@ JDK_BUILD_TYPE= release
.include <bsd.port.pre.mk>
-BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk17 \
- ${LOCALBASE}/openjdk16
+BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk17
+.if ${ARCH} == aarch64 || ${ARCH} == amd64
+BOOTSTRAP_JDKS+= ${LOCALBASE}/bootstrap-openjdk17
+.endif
+BOOTSTRAP_JDKS+= ${LOCALBASE}/openjdk16
# do we have valid native jdk installed?
.for BJDK in ${BOOTSTRAP_JDKS}
@@ -116,8 +119,13 @@ BOOTSTRAPJDKDIR= ${BJDK}
# if no valid jdk found, set dependency
.if !defined(BOOTSTRAPJDKDIR)
+. if ${ARCH} == aarch64 || ${ARCH} == amd64
+BOOTSTRAPJDKDIR?= ${LOCALBASE}/bootstrap-openjdk17
+BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:java/bootstrap-openjdk17
+. else
BOOTSTRAPJDKDIR?= ${LOCALBASE}/openjdk16
BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:java/openjdk16
+. endif
.endif
JDK_BUILD_JVM= server