1 2.include <bsd.compiler.mk> 3 4CRTSRC= ${SRCTOP}/contrib/llvm-project/compiler-rt 5.include "compiler-rt-vars.mk" 6 7.PATH: ${CRTSRC}/lib 8 9LIBDIR= ${SANITIZER_LIBDIR} 10SHLIBDIR= ${LIBDIR} 11 12NO_PIC= 13MK_PROFILE= no 14MK_ASAN:= no 15MK_SSP= no 16MK_UBSAN:= no 17 18WARNS?= 0 19 20CFLAGS+= -DNDEBUG 21CFLAGS+= -DHAVE_RPC_XDR_H=0 22CFLAGS+= -DSANITIZER_SUPPORTS_WEAK_HOOKS=0 23CFLAGS+= -DUBSAN_CAN_USE_CXXABI 24CFLAGS+= ${PICFLAG} 25CFLAGS+= -fno-builtin 26CFLAGS+= -fno-exceptions 27CXXFLAGS+= -fno-rtti 28.if ${COMPILER_TYPE} == clang 29CFLAGS+= -fno-sanitize=safe-stack 30.endif 31CFLAGS+= -fno-stack-protector 32CFLAGS+= -funwind-tables 33CXXFLAGS+= -fvisibility-inlines-hidden 34CXXFLAGS+= -fvisibility=hidden 35CFLAGS+= -I${CRTSRC}/include 36CFLAGS+= -I${CRTSRC}/lib 37CXXSTD= c++14 38