1# $NetBSD: Makefile,v 1.7 2019/09/26 08:03:21 mrg Exp $ 2 3UNSUPPORTED_COMPILER.clang= # defined 4NOSANITIZER= # defined 5 6.include <bsd.own.mk> 7 8.include "../Makefile.inc" 9.include "../Makefile.sanitizer" 10 11.PATH: ${SANITIZER}/asan ${SANITIZER}/lsan 12 13ASAN_SRCS= \ 14 asan_activation.cc \ 15 asan_allocator.cc \ 16 asan_debugging.cc \ 17 asan_descriptions.cc \ 18 asan_errors.cc \ 19 asan_fake_stack.cc \ 20 asan_flags.cc \ 21 asan_globals.cc \ 22 asan_interceptors.cc \ 23 asan_linux.cc \ 24 asan_mac.cc \ 25 asan_malloc_linux.cc \ 26 asan_malloc_mac.cc \ 27 asan_malloc_win.cc \ 28 asan_memory_profile.cc \ 29 asan_new_delete.cc \ 30 asan_poisoning.cc \ 31 asan_posix.cc \ 32 asan_report.cc \ 33 asan_rtl.cc \ 34 asan_stack.cc \ 35 asan_stats.cc \ 36 asan_suppressions.cc \ 37 asan_thread.cc \ 38 asan_win.cc \ 39 asan_win_dll_thunk.cc \ 40 asan_win_dynamic_runtime_thunk.cc 41 42LIB= asan 43SRCS+= ${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc 44LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 45CPPFLAGS+=-DCAN_SANITIZE_UB=0 46 47.if ${MACHINE_ARCH} == "vax" 48COPTS.asan_allocator.cc += -O1 49COPTS.asan_report.cc += -O1 50COPTS.ubsan_diag.cc += -O1 51COPTS.ubsan_init.cc += -O1 52.endif 53 54.include <bsd.lib.mk> 55