summaryrefslogtreecommitdiffstats
path: root/cddl/usr.sbin
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2011-10-30 16:29:04 +0000
committerrmh <rmh@FreeBSD.org>2011-10-30 16:29:04 +0000
commit1ab901bfdd1f185c25061033bce6daa4b9b560d0 (patch)
tree7625c03587487086766b59440120487694119ce9 /cddl/usr.sbin
parenta1dd5d2d73aaec35da888495c5f9c7ed1a05a486 (diff)
downloadFreeBSD-src-1ab901bfdd1f185c25061033bce6daa4b9b560d0.zip
FreeBSD-src-1ab901bfdd1f185c25061033bce6daa4b9b560d0.tar.gz
Fix a few gratuitous library dependencies. Some of the ZFS utilities
are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. Reviewed by: pjd, mm Approved by: kib (mentor) MFC after: 1 week
Diffstat (limited to 'cddl/usr.sbin')
-rw-r--r--cddl/usr.sbin/zdb/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/cddl/usr.sbin/zdb/Makefile b/cddl/usr.sbin/zdb/Makefile
index 446d1c4..6408028 100644
--- a/cddl/usr.sbin/zdb/Makefile
+++ b/cddl/usr.sbin/zdb/Makefile
@@ -23,9 +23,9 @@ CFLAGS+= -I${.CURDIR}/../../../sys/cddl/contrib/opensolaris/common/zfs
CFLAGS+= -I${.CURDIR}/../../../cddl/contrib/opensolaris/head
CFLAGS+= -I${.CURDIR}/../../lib/libumem
-DPADD= ${LIBAVL} ${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBPTHREAD} ${LIBUMEM} \
- ${LIBUUTIL} ${LIBZ} ${LIBZFS} ${LIBZPOOL}
-LDADD= -lavl -lgeom -lm -lnvpair -lpthread -lumem -luutil -lz -lzfs -lzpool
+DPADD= ${LIBGEOM} ${LIBM} ${LIBNVPAIR} ${LIBPTHREAD} ${LIBUMEM} \
+ ${LIBUUTIL} ${LIBZFS} ${LIBZPOOL}
+LDADD= -lgeom -lm -lnvpair -lpthread -lumem -luutil -lzfs -lzpool
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud