Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2022 21:04:25 GMT
From:      Greg Lewis <glewis@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7bcde8fa251a - main - java/openjdk18: Fix build with Clang 14
Message-ID:  <202204102104.23AL4PbB081485@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glewis:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7bcde8fa251a0d295de4ff9e2d9705f5ef1f77a1

commit 7bcde8fa251a0d295de4ff9e2d9705f5ef1f77a1
Author:     Greg Lewis <glewis@FreeBSD.org>
AuthorDate: 2022-04-10 21:02:29 +0000
Commit:     Greg Lewis <glewis@FreeBSD.org>
CommitDate: 2022-04-10 21:03:15 +0000

    java/openjdk18: Fix build with Clang 14
---
 java/openjdk18/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/java/openjdk18/Makefile b/java/openjdk18/Makefile
index aa71d4e7d2a1..c077b1255c69 100644
--- a/java/openjdk18/Makefile
+++ b/java/openjdk18/Makefile
@@ -149,7 +149,12 @@ CONFIGURE_ARGS+=	--with-extra-ldflags="-Wl,-rpath=${LOCALBASE}/lib/gcc${GCC_DEFA
 .else
 MAKE_ENV+=	USE_CLANG=true
 .if ${COMPILER_VERSION} >= 130
-CONFIGURE_ARGS+=	--with-extra-cflags="-Wno-unused-but-set-parameter"
+EXTRA_CFLAGS+=		-Wno-unused-but-set-parameter
+.if ${COMPILER_VERSION} >= 140
+EXTRA_CFLAGS+=		-Wno-bitwise-instead-of-logical
+.endif
+CONFIGURE_ARGS+=	--with-extra-cflags="${EXTRA_CFLAGS}"
+CONFIGURE_ARGS+=	--with-extra-cxxflags="${EXTRA_CFLAGS}"
 .endif
 .endif
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204102104.23AL4PbB081485>