aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mk/bsd.java.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.java.mk b/Mk/bsd.java.mk
index e2fecb606dc0..80e070690fb7 100644
--- a/Mk/bsd.java.mk
+++ b/Mk/bsd.java.mk
@@ -217,7 +217,11 @@ _JAVA_OS_linux= Linux
# Enforce preferred Java ports according to OS
. if ${OSVERSION} >= 400000
+. if ${ARCH} == "amd64"
+_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_5
+. else
_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_4
+. endif
. else
_JAVA_PREFERRED_PORTS+= JAVA_PORT_NATIVE_BSDJAVA_JDK_1_1
. endif