2016-02-06 13:39:20 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
|
|
SHLIB_NAME= libclang_rt.asan-${CRTARCH}.so
|
|
|
|
.undef NO_PIC # sorry...
|
|
|
|
|
2016-09-03 21:41:29 +00:00
|
|
|
SRCS+= asan/asan_activation.cc
|
|
|
|
SRCS+= asan/asan_allocator.cc
|
|
|
|
SRCS+= asan/asan_debugging.cc
|
|
|
|
SRCS+= asan/asan_fake_stack.cc
|
|
|
|
SRCS+= asan/asan_flags.cc
|
|
|
|
SRCS+= asan/asan_globals.cc
|
|
|
|
SRCS+= asan/asan_interceptors.cc
|
|
|
|
SRCS+= asan/asan_linux.cc
|
|
|
|
SRCS+= asan/asan_mac.cc
|
|
|
|
SRCS+= asan/asan_malloc_linux.cc
|
|
|
|
SRCS+= asan/asan_malloc_mac.cc
|
|
|
|
SRCS+= asan/asan_malloc_win.cc
|
|
|
|
SRCS+= asan/asan_memory_profile.cc
|
|
|
|
SRCS+= asan/asan_new_delete.cc
|
|
|
|
SRCS+= asan/asan_poisoning.cc
|
|
|
|
SRCS+= asan/asan_posix.cc
|
|
|
|
SRCS+= asan/asan_report.cc
|
|
|
|
SRCS+= asan/asan_rtl.cc
|
|
|
|
SRCS+= asan/asan_stack.cc
|
|
|
|
SRCS+= asan/asan_stats.cc
|
|
|
|
SRCS+= asan/asan_suppressions.cc
|
|
|
|
SRCS+= asan/asan_thread.cc
|
|
|
|
SRCS+= asan/asan_win.cc
|
|
|
|
SRCS+= interception/interception_linux.cc
|
|
|
|
SRCS+= interception/interception_mac.cc
|
|
|
|
SRCS+= interception/interception_type_test.cc
|
|
|
|
SRCS+= interception/interception_win.cc
|
|
|
|
SRCS+= lsan/lsan_common.cc
|
|
|
|
SRCS+= lsan/lsan_common_linux.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_allocator.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_common.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_common_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_coverage_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_coverage_mapping_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_deadlock_detector1.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_deadlock_detector2.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_flag_parser.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_flags.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_libc.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_libignore.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_linux.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_linux_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_linux_x86_64.S
|
|
|
|
SRCS+= sanitizer_common/sanitizer_mac.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_persistent_allocator.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_platform_limits_linux.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_platform_limits_posix.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_posix.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_posix_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_printf.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_procmaps_common.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_procmaps_freebsd.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_procmaps_linux.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_procmaps_mac.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_stackdepot.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_stacktrace.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_stacktrace_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_stacktrace_printer.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_suppressions.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer_mac.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_symbolizer_win.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_termination.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_thread_registry.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_tls_get_addr.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_unwind_linux_libcdep.cc
|
|
|
|
SRCS+= sanitizer_common/sanitizer_win.cc
|
|
|
|
SRCS+= ubsan/ubsan_diag.cc
|
|
|
|
SRCS+= ubsan/ubsan_flags.cc
|
|
|
|
SRCS+= ubsan/ubsan_handlers.cc
|
|
|
|
SRCS+= ubsan/ubsan_handlers_cxx.cc
|
|
|
|
SRCS+= ubsan/ubsan_init.cc
|
|
|
|
SRCS+= ubsan/ubsan_type_hash.cc
|
|
|
|
SRCS+= ubsan/ubsan_type_hash_itanium.cc
|
|
|
|
SRCS+= ubsan/ubsan_type_hash_win.cc
|
|
|
|
SRCS+= ubsan/ubsan_value.cc
|
2016-02-06 13:39:20 +00:00
|
|
|
|
|
|
|
# Kludge around a bsd.lib.mk shortcoming: when SHLIB_NAME is defined, but LIB
|
|
|
|
# and LIB_CXX are undefined (which forces building only a shared library),
|
|
|
|
# there is no way to tell it to use ${CXX} for linking. Since the files for
|
|
|
|
# this library are all C++ anyway, simply set CC to CXX.
|
|
|
|
CC= ${CXX}
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
CXXFLAGS.ubsan_handlers_cxx.cc= -frtti
|
|
|
|
CXXFLAGS.ubsan_type_hash.cc= -frtti
|
|
|
|
CXXFLAGS.ubsan_type_hash_itanium.cc= -frtti
|
|
|
|
CXXFLAGS.ubsan_type_hash_win.cc= -frtti
|