4 .
include "../Makefile.inc"
6 ASAN
=${GCCDIST}/libsanitizer
7 .PATH
: ${ASAN}/asan
${ASAN}/interception
${ASAN}/sanitizer_common
12 asan_interceptors.
cc \
18 asan_thread_registry.
cc \
22 asan_malloc_linux.
cc \
29 interception_linux.
cc \
30 interception_type_test.
cc
33 sanitizer_allocator.
cc \
40 sanitizer_platform_limits_posix.
cc \
42 sanitizer_stackdepot.
cc \
43 sanitizer_stacktrace.
cc \
44 sanitizer_symbolizer.
cc \
45 sanitizer_symbolizer_linux.
cc \
48 # The linux build does this to avoid preinit sections on shared libraries
52 SRCS
= ${ASAN_SRCS} ${INTERCEPTION_SRCS} ${SANITIZER_SRCS}
53 CPPFLAGS
+=-I
${ASAN}/include -I
${ASAN}
54 CPPFLAGS.sanitizer_netbsd.
cc+=-I
${GCCDIST}/gcc
/ginclude
56 LIBDPLIBS
+= stdc
++ ${.CURDIR
}/..
/libstdc
++-v3
57 LIBDPLIBS
+= pthread
${.CURDIR
}/..
/..
/..
/..
/..
/lib
/libpthread
59 .if
${MACHINE_ARCH} == "vax"
60 COPTS.asan_allocator2.
cc += -O1
61 COPTS.sanitizer_mac.
cc += -O1
62 COPTS.sanitizer_netbsd.
cc += -O1
63 COPTS.sanitizer_printf.
cc += -O1
64 COPTS.sanitizer_stackdepot.
cc += -O1