mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
java/openjdk11: Restore LLVM/Clang 13 workaround
This restores the previous LLVM/Clang 13 workaround. I had thought the upstream changes would address this, but still seeing reports of crashes when compiled with LLVM/Clang 13. PR: 260319 Reported by: various
This commit is contained in:
parent
691035521a
commit
846ff4e952
1 changed files with 6 additions and 1 deletions
|
@ -142,7 +142,12 @@ CONFIGURE_ARGS+= --with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFA
|
||||||
.else
|
.else
|
||||||
MAKE_ENV+= USE_CLANG=true
|
MAKE_ENV+= USE_CLANG=true
|
||||||
.if ${COMPILER_VERSION} >= 130
|
.if ${COMPILER_VERSION} >= 130
|
||||||
CONFIGURE_ARGS+= --with-extra-cflags="-Wno-unused-but-set-parameter"
|
# 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
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue