new upload: fped_0.0+r5983-1
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
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 198 bytes
Desc: OpenPGP digital signature
More information about the discussion