diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2021-10-15 18:18:36 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-10-16 12:22:03 +0000 |
commit | 3822416493cfbbed8fe7a487391b40bec956d671 (patch) | |
tree | 928b05b398cb23d296856beeb9c9f16bc1696434 /java/openjdk8 | |
parent | 86b2f72cb04b41ce5099a7c742b20a56cb30f717 (diff) | |
download | ports-3822416493cfbbed8fe7a487391b40bec956d671.tar.gz ports-3822416493cfbbed8fe7a487391b40bec956d671.zip |
Diffstat (limited to 'java/openjdk8')
-rw-r--r-- | java/openjdk8/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile index 90f20695c4d1..65cbbb39a314 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -204,6 +204,14 @@ LIB_DEPENDS+= libffi.so:devel/libffi .if ${COMPILER_TYPE} == clang MAKE_ENV+= COMPILER_WARNINGS_FATAL=false USE_CLANG=true CONFIGURE_ENV+= LIBCXX="-lc++" +.if ${COMPILER_VERSION} >= 130 +# PR258954: OpenJDK <= 13 crash due to undefined behavior with clang >= 13 +# See also https://bugs.openjdk.java.net/browse/JDK-8229258 +LLVM_VER= 12 +BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} +CC= ${LOCALBASE}/bin/clang${LLVM_VER} +CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} +.endif .endif # GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html |