Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 09:49:02 +0100
From:      Martin Matuska <mm@FreeBSD.org>
To:        Robert Millan <rmh@freebsd.org>
Cc:        freebsd-fs@freebsd.org, Adrian Chadd <adrian@freebsd.org>
Subject:   Re: [PATCH] fix gratuitous dependencies in ZFS libraries / utilities
Message-ID:  <4EAD0F7E.8030301@FreeBSD.org>
In-Reply-To: <20111028200824.GA2757@thorin>
References:  <20111028200824.GA2757@thorin>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EAD0F7E.8030301>