diff options
-rw-r--r-- | cddl/lib/Makefile | 6 | ||||
-rw-r--r-- | cddl/usr.sbin/Makefile | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/cddl/lib/Makefile b/cddl/lib/Makefile index 5e995f4..33cda45 100644 --- a/cddl/lib/Makefile +++ b/cddl/lib/Makefile @@ -5,7 +5,7 @@ SUBDIR= drti \ libavl \ libctf \ - libdtrace \ + ${_libdtrace} \ libnvpair \ libumem \ libuutil \ @@ -19,4 +19,8 @@ _libzpool= libzpool .endif .endif +.if ${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386 +_libdtrace= libdtrace +.endif + .include <bsd.subdir.mk> diff --git a/cddl/usr.sbin/Makefile b/cddl/usr.sbin/Makefile index f7c32f3..92f00be 100644 --- a/cddl/usr.sbin/Makefile +++ b/cddl/usr.sbin/Makefile @@ -2,8 +2,8 @@ .include <bsd.own.mk> -SUBDIR= dtrace \ - lockstat \ +SUBDIR= ${_dtrace} \ + ${_lockstat} \ ${_zdb} .if ${MK_ZFS} != "no" @@ -12,4 +12,9 @@ _zdb= zdb .endif .endif +.if ${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == i386 +_dtrace= dtrace +_lockstat= lockstat +.endif + .include <bsd.subdir.mk> |