diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-04-26 12:38:28 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-04-29 08:45:36 +0000 |
| commit | 6c7525282e522052f7416bf30223c7c56f3a5b63 (patch) | |
| tree | c1b28eb9e214164c751de70a0f1dd565601bddf2 /java/openjdk8/Makefile | |
| parent | 276de0b840925e727810341ed61a0849c9607e52 (diff) | |
Diffstat (limited to 'java/openjdk8/Makefile')
| -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 688035a60d89..6196947d8f30 100644 --- a/java/openjdk8/Makefile +++ b/java/openjdk8/Makefile @@ -1,5 +1,6 @@ PORTNAME= openjdk PORTVERSION= ${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER}.${BSD_JDK_VERSION} +PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= LOCAL/jkim:jtreg PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION} @@ -213,6 +214,13 @@ BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} CC= ${LOCALBASE}/bin/clang${LLVM_VER} CXX= ${LOCALBASE}/bin/clang++${LLVM_VER} .endif +.if ${COMPILER_VERSION} >= 160 +# clang 16 defaults to C++17, which no longer allows the 'register' keyword. +# There is an upstream commit that removes all the individual 'register' +# keywords, but it has not yet been backported to OpenJDK 8. +# NOTE: passing this option via --with-extra-cflags does not work. +CFLAGS+= -Dregister= +.endif .endif # GCC is broken with PCH: https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html |
