diff --git a/java/jdk/Makefile b/java/jdk/Makefile index bf5d0a800e17..78d2621318f7 100644 --- a/java/jdk/Makefile +++ b/java/jdk/Makefile @@ -29,6 +29,7 @@ NO_BUILD= yes .if ${PORTOBJFORMAT} == "aout" DISTFILES= jdk${JDK_VERSION}_AOUT.V1999-11-9.tar.gz .else +LIB_DEPENDS+= c.3:${PORTSDIR}/misc/compat3x DISTFILES= jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz .endif diff --git a/java/jdk11/Makefile b/java/jdk11/Makefile index bf5d0a800e17..78d2621318f7 100644 --- a/java/jdk11/Makefile +++ b/java/jdk11/Makefile @@ -29,6 +29,7 @@ NO_BUILD= yes .if ${PORTOBJFORMAT} == "aout" DISTFILES= jdk${JDK_VERSION}_AOUT.V1999-11-9.tar.gz .else +LIB_DEPENDS+= c.3:${PORTSDIR}/misc/compat3x DISTFILES= jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz .endif