5 SHLIB_NAME= libclang_rt.asan-${CRTARCH}.so
6 .undef NO_PIC # sorry...
8 .PATH: ${CRTSRC}/lib/asan\
9 ${CRTSRC}/lib/interception\
10 ${CRTSRC}/lib/sanitizer_common\
14 SRCS= interception_linux.cc\
17 interception_type_test.cc\
18 sanitizer_allocator.cc\
20 sanitizer_deadlock_detector1.cc\
21 sanitizer_deadlock_detector2.cc\
23 sanitizer_flag_parser.cc\
25 sanitizer_libignore.cc\
28 sanitizer_persistent_allocator.cc\
29 sanitizer_platform_limits_linux.cc\
30 sanitizer_platform_limits_posix.cc\
33 sanitizer_procmaps_common.cc\
34 sanitizer_procmaps_freebsd.cc\
35 sanitizer_procmaps_linux.cc\
36 sanitizer_procmaps_mac.cc\
37 sanitizer_stackdepot.cc\
38 sanitizer_stacktrace.cc\
39 sanitizer_stacktrace_printer.cc\
40 sanitizer_suppressions.cc\
41 sanitizer_symbolizer.cc\
42 sanitizer_symbolizer_libbacktrace.cc\
43 sanitizer_symbolizer_mac.cc\
44 sanitizer_symbolizer_win.cc\
45 sanitizer_tls_get_addr.cc\
46 sanitizer_thread_registry.cc\
48 sanitizer_common_libcdep.cc\
49 sanitizer_coverage_libcdep.cc\
50 sanitizer_coverage_mapping_libcdep.cc\
51 sanitizer_linux_libcdep.cc\
52 sanitizer_posix_libcdep.cc\
53 sanitizer_stacktrace_libcdep.cc\
54 sanitizer_stoptheworld_linux_libcdep.cc\
55 sanitizer_symbolizer_libcdep.cc\
56 sanitizer_symbolizer_posix_libcdep.cc\
57 sanitizer_unwind_linux_libcdep.cc\
87 ubsan_handlers_cxx.cc\
89 ubsan_type_hash_itanium.cc\
90 ubsan_type_hash_win.cc
92 # Kludge around a bsd.lib.mk shortcoming: when SHLIB_NAME is defined, but LIB
93 # and LIB_CXX are undefined (which forces building only a shared library),
94 # there is no way to tell it to use ${CXX} for linking. Since the files for
95 # this library are all C++ anyway, simply set CC to CXX.
100 CXXFLAGS.ubsan_handlers_cxx.cc= -frtti
101 CXXFLAGS.ubsan_type_hash.cc= -frtti
102 CXXFLAGS.ubsan_type_hash_itanium.cc= -frtti
103 CXXFLAGS.ubsan_type_hash_win.cc= -frtti