[PATCH xfsprogs] libxcmd: link against used libs
Mike Frysinger
vapier at gentoo.org
Tue Aug 9 20:52:36 CDT 2016
On 10 Aug 2016 07:49, Dave Chinner wrote:
> On Tue, Aug 09, 2016 at 10:43:43PM +0800, Mike Frysinger wrote:
> > Since this lib uses symbols from libxfs (platform_findsizes) and many
> > symbols from libblkid, link against both. Otherwise, the resulting
> > shared lib has missing symbols which makes linking against annoying.
>
> libxcmd is an internal library, linked directly into the xfsprogs
> binaries. It is never shipped or used outside xfsprogs, so what is
> trying to use libxcmd as a shared library that doesn't also link
> against libblkid or libxfs?
shouldn't internal libs still have coherent linkage ? otherwise you
cause problems even internally for xfs -- any other libs or progs that
link against libxcmd have to list all the libs that libxcmd happen to
use itself. it also means that you get correct link order which is
otherwise not guaranteed. e.g. just because you say libxfs needs to
use libblkid doesn't mean the linker must put that after libxcmd in
the link list.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://oss.sgi.com/pipermail/xfs/attachments/20160810/86a10d76/attachment.sig>
More information about the xfs
mailing list