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