1 # $NetBSD: Makefile,v 1.7 2018/06/11 15:29:33 christos Exp $ 2 3 UNSUPPORTED_COMPILER.clang= # defined 4 LIBISCXX = yes 5 6 .include <bsd.own.mk> 7 8 .include "../Makefile.inc" 9 .include "../Makefile.sanitizer" 10 11 .PATH: ${SANITIZER}/ubsan 12 13 UBSAN_SRCS= \ 14 ubsan_diag.o \ 15 ubsan_flags.o \ 16 ubsan_handlers.o \ 17 ubsan_handlers_cxx.o \ 18 ubsan_init.o \ 19 ubsan_init_standalone.o \ 20 ubsan_type_hash.o \ 21 ubsan_type_hash_itanium.o \ 22 ubsan_type_hash_win.o \ 23 ubsan_value.o 24 25 26 .for _s in ubsan_handlers_cxx ubsan_type_hash ubsan_type_hash_itanium 27 COPTS.${_s}.cc+=-frtti 28 .endfor 29 30 LIB= ubsan 31 SRCS+= ${UBSAN_SRCS} 32 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt 33 34 .if ${MACHINE_ARCH} == "vax" 35 COPTS += -O1 36 .endif 37 38 .include <bsd.lib.mk> 39