mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Disable -Werror to fix build on versions older than 11.0.
The Makefiles in this port use CWARNFLAGS.clang to disable certain warnings on clang. However, the bsd.*.mk files only support this feature in 11.0 and later. Disable -Werror on older OS versions as a workaround. Approved by: feld
This commit is contained in:
parent
cb70bf309c
commit
3cb7074c1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447184
@ -26,6 +26,12 @@ CFLAGS+= -DMDB_PREFIX=\\\"${PREFIX}\\\" -g
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 1100021
|
||||
# This port uses CWARNFLAGS.clang to silence warnings which only works
|
||||
# in 11.0 and later.
|
||||
MAKE_ARGS+= NO_WERROR=yes
|
||||
.endif
|
||||
|
||||
.if !exists(${SRC_BASE}/cddl/compat) || !exists(${SRC_BASE}/sys/cddl/compat)
|
||||
IGNORE= requires full source tree with CDDL sources
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user