diff options
| author | kamil <kamil@NetBSD.org> | 2019-08-27 22:48:53 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-08-27 22:48:53 +0000 |
| commit | c0b89289dd53a3d3b43d4ffc022b3476336475cb (patch) | |
| tree | f060a01a03d646f453c5cc6ced1bfe75dc9e29ad /Makefile | |
| parent | f36ac1f20184a5b4d9e987ad7f83f3f5ddeeca7f (diff) | |
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 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.330 2019/08/26 04:49:45 kamil Exp $ +# $NetBSD: Makefile,v 1.331 2019/08/27 22:48:54 kamil Exp $ # # This is the top-level makefile for building NetBSD. For an outline of @@ -481,7 +481,7 @@ do-compat-lib: .PHONY .MAKE ${MAKEDIRTARGET} compat build_install BOOTSTRAP_SUBDIRS="../../../lib" do-sanitizer: .PHONY .MAKE - ${MAKEDIRTARGET} external/bsd/compiler_rt all + ${MAKEDIRTARGET} external/bsd/compiler_rt build_install do-sanitizer-tools: .PHONY .MAKE .if !exists(${TOOLDIR}/lib/clang) && ${HAVE_LLVM:Uno} == "yes" |
