diff options
author | jhb <jhb@FreeBSD.org> | 2017-08-03 07:58:03 +0800 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2017-08-03 07:58:03 +0800 |
commit | b4f1b17736f57effed97cd2211be96ddf275aaa0 (patch) | |
tree | 347972e4e98c5c8f77f89b8ca8ad13f5e8043b11 /devel | |
parent | eb90847e2fd3b446a1b7fbc2decfd13e2dcced89 (diff) | |
download | freebsd-ports-gnome-b4f1b17736f57effed97cd2211be96ddf275aaa0.tar.gz freebsd-ports-gnome-b4f1b17736f57effed97cd2211be96ddf275aaa0.tar.zst freebsd-ports-gnome-b4f1b17736f57effed97cd2211be96ddf275aaa0.zip |
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
Diffstat (limited to 'devel')
-rw-r--r-- | devel/mdb/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/mdb/Makefile b/devel/mdb/Makefile index 9776a464e43a..e340c1cd794a 100644 --- a/devel/mdb/Makefile +++ b/devel/mdb/Makefile @@ -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 |