1# $NetBSD: Makefile,v 1.9 2023/08/03 01:36:55 mrg Exp $ 2 3.include <bsd.own.mk> 4 5.include "../Makefile.inc" 6.include "../Makefile.sanitizer" 7 8.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan 9 10LSAN_SRCS+= \ 11 lsan_common.cpp \ 12 lsan_common_linux.cpp \ 13 lsan_common_mac.cpp \ 14 lsan.cpp \ 15 lsan_linux.cpp \ 16 lsan_mac.cpp \ 17 lsan_malloc_mac.cpp \ 18 lsan_allocator.cpp \ 19 lsan_interceptors.cpp \ 20 lsan_thread.cpp \ 21 lsan_posix.cpp 22 23.if ${MACHINE_ARCH} == "vax" 24#COPTS.lsan_allocator.cpp += -O1 25#COPTS.sanitizer_file.cpp += -O1 26.endif 27 28LIB= lsan 29SRCS+= ${LSAN_SRCS} 30LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm 31LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 32LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread 33 34CWARNFLAGS.clang+= -Wno-error=unused-private-field 35 36.include <bsd.lib.mk> 37