blob: 4578544a9a8baaa91a5bc275e983339471db35e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $NetBSD: Makefile,v 1.6 2023/02/20 02:12:15 mrg Exp $
.include <bsd.own.mk>
.include "../Makefile.inc"
.include "../Makefile.sanitizer"
.PATH: ${SANITIZER}/lsan ${SANITIZER}/asan
LSAN_SRCS+= \
lsan.cc \
lsan_allocator.cc \
lsan_common.cc \
lsan_common_linux.cc \
lsan_interceptors.cc \
lsan_linux.cc \
lsan_thread.cc
.if ${MACHINE_ARCH} == "vax"
COPTS.lsan_allocator.cc += -O1
COPTS.sanitizer_file.cc += -O1
.endif
LIB= lsan
SRCS+= ${LSAN_SRCS}
LIBDPLIBS+= m ${NETBSDSRCDIR}/lib/libm
LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
LIBDPLIBS+= pthread ${NETBSDSRCDIR}/lib/libpthread
CWARNFLAGS.clang+= -Wno-error=unused-private-field
.include <bsd.lib.mk>
|