java/openjdk18: Fix build with Clang 14
This commit is contained in:
parent
8ba1801ad5
commit
7bcde8fa25
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user