dpkg-shlibdeps: warning: dependency on $(lib) could be avoided if $(object) were not uselessly linked against it (they use none of its symbols).
I didn’t like this build time warning at all. In the library packaging guide a found a nifty trick, add this line to the debian/rules (this is cdbs, don’t know how it is done with debhelper scripts)
DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS=” -Wl,–as-needed”
This worked for the executable and I’ve saved 300 bytes!!!!! Yeah =D
It didn’t work for the library though =( Bummer.