From bcf72246c5082e768c19a7d4a76fe4b1fe6e8fd8 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 1 Oct 2007 18:23:24 +0000 Subject: [PATCH] Don't build bits that depend on the pthreads support if a system was configured without such support. Approved by: re (kensmith) --- cddl/lib/Makefile | 2 ++ cddl/usr.bin/Makefile | 2 ++ cddl/usr.sbin/Makefile | 2 ++ 3 files changed, 6 insertions(+) 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