diff options
Diffstat (limited to 'cddl/usr.sbin/dtrace/Makefile')
| -rw-r--r-- | cddl/usr.sbin/dtrace/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/cddl/usr.sbin/dtrace/Makefile b/cddl/usr.sbin/dtrace/Makefile index d8510e62fb29..2cc5376c5fed 100644 --- a/cddl/usr.sbin/dtrace/Makefile +++ b/cddl/usr.sbin/dtrace/Makefile @@ -1,5 +1,3 @@ -# $FreeBSD$ - .include <src.opts.mk> .PATH: ${SRCTOP}/cddl/contrib/opensolaris/cmd/dtrace @@ -12,9 +10,10 @@ BINDIR?= /usr/sbin WARNS?= 1 CFLAGS+= -DIN_BASE -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ -CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd +CFLAGS+= -DSKIP_SPL_SYS_CONDVAR_H +CFLAGS+= -I${ZFSTOP}/include +CFLAGS+= -I${ZFSTOP}/lib/libspl/include/ +CFLAGS+= -I${ZFSTOP}/lib/libspl/include/os/freebsd CFLAGS+= -I${SRCTOP}/sys CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris \ @@ -30,7 +29,12 @@ CFLAGS+= -DHAVE_ISSETUGID #CFLAGS+= -DNEED_ERRLOC #YFLAGS+= -d -LIBADD= dtrace ctf elf proc spl +.if ${MK_DTRACE_ASAN} != "no" +CFLAGS+= -fsanitize=address -fsanitize=undefined +LDFLAGS+= -fsanitize=address -fsanitize=undefined +.endif + +LIBADD= dtrace ctf elf proc spl xo pthread .if ${MK_DTRACE_TESTS} != "no" SUBDIR+= tests |
