Re: [PATCH xfsprogs] libxcmd: link against used libs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs

[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux