diff --git a/cddl/lib/Makefile b/cddl/lib/Makefile index 94a93a13ea8..138f60740ee 100644 --- a/cddl/lib/Makefile +++ b/cddl/lib/Makefile @@ -11,7 +11,9 @@ SUBDIR= libavl \ .if ${MK_ZFS} != "no" _libzfs= libzfs +.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no" _libzpool= libzpool .endif +.endif .include diff --git a/cddl/usr.bin/Makefile b/cddl/usr.bin/Makefile index 95e5ac49878..2ca99cbe109 100644 --- a/cddl/usr.bin/Makefile +++ b/cddl/usr.bin/Makefile @@ -5,7 +5,9 @@ SUBDIR= ${_ztest} .if ${MK_ZFS} != "no" +.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no" _ztest= ztest .endif +.endif .include diff --git a/cddl/usr.sbin/Makefile b/cddl/usr.sbin/Makefile index 1be350108b4..f8b81fcdd1f 100644 --- a/cddl/usr.sbin/Makefile +++ b/cddl/usr.sbin/Makefile @@ -5,7 +5,9 @@ SUBDIR= ${_zdb} .if ${MK_ZFS} != "no" +.if ${MK_LIBTHR} != "no" || ${MK_LIBPTHREAD} != "no" _zdb= zdb .endif +.endif .include