]> git.proxmox.com Git - mirror_iproute2.git/commit
iproute2: drop libresolv
authorAndreas Henriksson <andreas@fatal.se>
Sat, 10 Nov 2012 12:22:10 +0000 (13:22 +0100)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 12 Nov 2012 16:50:15 +0000 (08:50 -0800)
commit2c389b0f31ec5218d9ae4fb161232a5cbebb5cb1
tree6995d28a01eb19573b08399e2e8a70d73099f8ff
parentcc574302065c0354feef0dd8753a705d721c65fa
iproute2: drop libresolv

Hello!

While building the iproute package in Debian I get warnings from
package helpers like this:

dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/iproute/sbin/tc debian/iproute/usr/bin/lnstat debian/iproute/bin/ip debian/iproute/bin/ss debian/iproute/sbin/bridge debian/iproute/sbin/rtmon were not linked against libresolv.so.2 (they use none of the library's symbols)

The -lresolv in ./Makefile seems to come from pre-historic times (before
iproute2 git history, possibly from libc5/pre-glibc days).
I couldn't find out if/why there was any reason for linking to libresolv.
Does anyone know if there are any valid reasons for keeping it still?

If not, I'd be happy to see it go.... while at it I also removed includes
of <resolv.h> which I also couldn't find any reason for, but this is
just an added bonus of the patch (and there are probably more unneeded
includes that could be dropped in the same sources).

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Makefile
lib/utils.c
misc/ss.c