Bug#466692: useless libs in pkg-config file

Marcin Owsiany porridge at debian.org
Wed Feb 20 13:03:46 UTC 2008


Package: libao-dev
Version: 0.8.8-4

/usr/lib/pkgconfig/ao.pc contains:
[...]
Libs: -L${libdir} -lao -lpthread -ldl
[...]

This means that programs using PKG_CHECK_MODULES and @AO_LIBS@ via
autoconf (eg. ydpdict) get linked to libraries they don't use:

dpkg-shlibdeps: warning: debian/ydpdict/usr/bin/ydpdict shouldn't be linked with libpthread.so.0 (it uses none of its symbols).
dpkg-shlibdeps: warning: debian/ydpdict/usr/bin/ydpdict shouldn't be linked with libdl.so.2 (it uses none of its symbols).

This does not cause a superfluous dependancy in this case (as dl and
pthread are in libc6), but I think should be avoided in general.

-- 
Marcin Owsiany <porridge at debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216





More information about the pkg-xiph-maint mailing list