new upload: fped_0.0+r5983-1

Bas Wijnen wijnen at debian.org
Thu Oct 14 05:22:03 EDT 2010


Op 14-10-10 08:37, Werner Almesberger schreef:
> Xiangfu Liu wrote:
>> the warning says 'fped' link those *.so, but not used when 
>> running. right?
> 
> All these things seem to come from  pkg-config --libs gtk+-2.0
> Libraries listed with -lfoo do indeed have to be present, even if
> not used. So it's correct to consider them a build dependency with
> that pkg-config output, no matter what goes into the ELF.
> 
> Seems that either pkg-config or dpkg-shlibdeps is a bit overzealous.

That's pkg-config; it can't know which features of the library you're
using, so it lists all possible dependencies. dpkg-shlibdeps just
examines the executable and copies its actual dependencies into the
package administration.

If you use the --as-needed option for the linker (-Wl,--as-needed on the
gcc commandline), it will discard the extra libraries. That should get
rid of the warnings, AFAIK, but it also means you may need to be more
correct in what you link explicitly.

Thanks,
Bas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.en.qi-hardware.com/pipermail/discussion/attachments/20101014/8d428dca/attachment.pgp>


More information about the discussion mailing list


interactive