Module Name:    src
Committed By:   kre
Date:           Thu Aug 16 03:59:52 UTC 2018

Modified Files:
        src/external/bsd/mdocml/bin/mandoc: Makefile

Log Message:
man_term.c needs -Wno-error=array-bounds for the exact same reason
as libmandoc/mandoc-validate.c

And as we do not have recallocarray() in libc, we need the compat
source file for the full build, as well as for tools builds.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/bsd/mdocml/bin/mandoc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/mdocml/bin/mandoc/Makefile
diff -u src/external/bsd/mdocml/bin/mandoc/Makefile:1.14 src/external/bsd/mdocml/bin/mandoc/Makefile:1.15
--- src/external/bsd/mdocml/bin/mandoc/Makefile:1.14	Wed Aug 15 08:19:18 2018
+++ src/external/bsd/mdocml/bin/mandoc/Makefile	Thu Aug 16 03:59:52 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2018/08/15 08:19:18 mrg Exp $
+# $NetBSD: Makefile,v 1.15 2018/08/16 03:59:52 kre Exp $
 
 .include <bsd.own.mk>
 
@@ -31,10 +31,14 @@ tree.c
 DPADD+= 	${MDOCMLLIB.mandoc} ${LIBZ}
 LDADD+= 	-L${MDOCMLOBJDIR.mandoc} -lmandoc -lz
 CPPFLAGS+=	-DUSE_WCHAR
+SRCS+=		compat_recallocarray.c
 .else
 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -v SRCS
 
-SRCS+=		${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c compat_recallocarray.c
+SRCS+=		${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c \
+		compat_recallocarray.c
 .endif
 
+COPTS.man_term.c+= -Wno-error=array-bounds
+
 .include <bsd.prog.mk>

Reply via email to