summaryrefslogtreecommitdiff
blob: 62d53267acdcf56a75a3f8f4fe8ecfa0fad22abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/cddl/lib/libzfs/Makefile b/cddl/lib/libzfs/Makefile
index cc0f363..065281f 100644
--- a/cddl/lib/libzfs/Makefile
+++ b/cddl/lib/libzfs/Makefile
@@ -8,7 +8,8 @@
 LIB=	zfs
 DPADD=	${LIBMD} ${LIBPTHREAD} ${LIBUMEM} ${LIBUTIL} ${LIBM} ${LIBNVPAIR} \
 	${LIBAVL} ${LIBZFS_CORE}
-LDADD=	-lmd -lpthread -lumem -lutil -lm -lnvpair -lavl -lzfs_core
+LDADD=	-lmd -lpthread -lumem -lutil -lm -lnvpair -lavl -lzfs_core -lgeom -luutil
+LDFLAGS+= -L${.CURDIR}/../../lib/libavl
 
 SRCS=	deviceid.c \
 	fsshare.c \
diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile
index 61c4788..4888cc7 100644
--- a/cddl/lib/libzpool/Makefile
+++ b/cddl/lib/libzpool/Makefile
@@ -61,7 +61,7 @@ LDFLAGS+=	-L${.CURDIR}/../../lib/libnvpair
 LDFLAGS+=	-L${.CURDIR}/../../lib/libumem
 
 DPADD=		${LIBMD} ${LIBPTHREAD} ${LIBZ}
-LDADD=		-lmd -lpthread -lz
+LDADD=		-lmd -lpthread -lz -lumem -lavl
 
 # atomic.S doesn't like profiling.
 NO_PROFILE=