svn commit: r447184 - head/devel/mdb

John Baldwin jhb at FreeBSD.org
Wed Aug 2 23:58:04 UTC 2017


Author: jhb (src,doc committer)
Date: Wed Aug  2 23:58:03 2017
New Revision: 447184
URL: https://svnweb.freebsd.org/changeset/ports/447184

Log:
  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

Modified:
  head/devel/mdb/Makefile

Modified: head/devel/mdb/Makefile
==============================================================================
--- head/devel/mdb/Makefile	Wed Aug  2 22:54:20 2017	(r447183)
+++ head/devel/mdb/Makefile	Wed Aug  2 23:58:03 2017	(r447184)
@@ -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


More information about the svn-ports-all mailing list