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