tisdag den 25 oktober 2011 klockan 08:52 skrev Alfred M. Szmidt detta: > Here's a patch that improves the Makefile.am files, and reduces > dependencies so that programs do not end up lining against unneeded > shared libraries. > > What shared libraries exactly? What does this fix?
In Debian we use at package build time a helper "dpkg-shlibdeps" that checks claimed library dependencies of binaries to be installed. In cases were a build system implement linking that is in fact not needed since all relevant symbols are missing, then this helper prints a warning message. The list below contains those warnings on a GNU/kFreeBSD system building inetutils-1.8. I have inserted a newline where another executable comes into scope, this is to ease the reading. Hopefully you will be convinced fo the relevance of the present suggestion by this heavy list. Best regards, Mats dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libhistory.so.6 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libtinfo.so.5 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-ftp/usr/bin/inetutils-ftp" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-ftpd/usr/sbin/ftpd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-ftpd/usr/sbin/ftpd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-ftpd/usr/sbin/ftpd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libshishi.so.0 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libutil.so.1 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libcrypt.so.1 could be avoided if "debian/inetutils-inetd/usr/sbin/inetutils-inetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-ping/bin/ping6 debian/inetutils-ping/bin/ping" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-ping/bin/ping6 debian/inetutils-ping/bin/ping" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-ping/bin/ping6 debian/inetutils-ping/bin/ping" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libshishi.so.0 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libutil.so.1 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libcrypt.so.1 could be avoided if "debian/inetutils-syslogd/usr/sbin/syslogd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-talk/usr/bin/inetutils-talk" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-talk/usr/bin/inetutils-talk" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-talk/usr/bin/inetutils-talk" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-talkd/usr/sbin/talkd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-talkd/usr/sbin/talkd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-talkd/usr/sbin/talkd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-telnet/usr/bin/inetutils-telnet" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if "debian/inetutils-telnet/usr/bin/inetutils-telnet" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-telnet/usr/bin/inetutils-telnet" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-telnet/usr/bin/inetutils-telnet" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libcrypt.so.1 could be avoided if "debian/inetutils-telnet/usr/bin/inetutils-telnet" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-telnetd/usr/sbin/telnetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libncurses.so.5 could be avoided if "debian/inetutils-telnetd/usr/sbin/telnetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-telnetd/usr/sbin/telnetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-telnetd/usr/sbin/telnetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libcrypt.so.1 could be avoided if "debian/inetutils-telnetd/usr/sbin/telnetd" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libdl.so.2 could be avoided if "debian/inetutils-tools/usr/bin/inetutils-ifconfig" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libresolv.so.2 could be avoided if "debian/inetutils-tools/usr/bin/inetutils-ifconfig" were not uselessly linked against it (they use none of its symbols). dpkg-shlibdeps: warning: dependency on libnsl.so.1 could be avoided if "debian/inetutils-tools/usr/bin/inetutils-ifconfig" were not uselessly linked against it (they use none of its symbols).
