summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2019-09-01 10:44:22 +0000
committermartin <martin@NetBSD.org>2019-09-01 10:44:22 +0000
commit0b0bd8fb97fccf0d159292b80a6759c90e877c1d (patch)
treed53d50a30f057e96da4aa027684bdee906902f1d /tests
parent20e47a987bacf808a0d1e287f6c317f58edab639 (diff)
Pull up following revision(s) (requested by kamil in ticket #126):
external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3 external/gpl2/lvm2/lvm2tools.mk: revision 1.5 common/lib/libc/gmon/mcount.c: revision 1.14 Makefile: revision 1.331 share/mk/Makefile: revision 1.51 external/bsd/fetch/lib/Makefile: revision 1.12 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3 tests/lib/libc/net/Makefile: revision 1.12 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3 distrib/sets/lists/base/mi: revision 1.1213 share/mk/bsd.lib.mk: revision 1.380 external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3 share/mk/bsd.sanitizer.mk: revision 1.1 share/mk/bsd.prog.mk: revision 1.323 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3 external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3 lib/libc/gen/sysctlgetmibinfo.c: revision 1.14 Enhance the support of LLVM sanitizers Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio code. This caused new build issued with duplicated symbols in few places and rump kernel code picking different code paths borrowed from libc. Handle all this in one go. Add bsd.sanitizer.mk to share common code used by programs and libraries. Switch from realall to beforeinstall target in .syms files. This is more reliable in MKSANITIZER.
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/libc/net/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/libc/net/Makefile b/tests/lib/libc/net/Makefile
index 86551bbbac7..51f75ec0ab0 100644
--- a/tests/lib/libc/net/Makefile
+++ b/tests/lib/libc/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2018/08/06 04:50:11 msaitoh Exp $
+# $NetBSD: Makefile,v 1.11.2.1 2019/09/01 10:44:23 martin Exp $
.include <bsd.own.mk>
@@ -41,4 +41,8 @@ LDADD.h_nsd_recurse+= -lpthread
CLEANFILES+= aton_ether_subr.c
+.if ${MKSANITIZER:Uno} == "yes"
+COPTS.h_nsd_recurse.c+= -Wno-macro-redefined # _REENTRANT redefined
+.endif
+
.include <bsd.test.mk>