[PATCH] fix gratuitous dependencies in ZFS libraries / utilities
Martin Matuska
mm at FreeBSD.org
Sun Oct 30 08:49:06 UTC 2011
On 28. 10. 2011 22:08, Robert Millan wrote:
> Hi,
>
> Some of the ZFS libraries and 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.
>
> Attached patch (tested with "make buildworld") fixes these problems.
Looks good + tested.
--
Martin Matuska
FreeBSD committer
http://blog.vx.sk
More information about the freebsd-fs
mailing list