diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-17 19:38:05 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-03-17 19:38:05 +0000 |
commit | 494c9074b3dc32b7b3b7f84e6aca2781f9bdc096 (patch) | |
tree | 8000a58e21976f02b503a137c09a299ad375bf58 /tools/xcutils/lsevtchn.c | |
parent | 0394b57cda6f09f2d45feaf5a4f9dc62d6798c23 (diff) | |
download | xen-494c9074b3dc32b7b3b7f84e6aca2781f9bdc096.tar.gz xen-494c9074b3dc32b7b3b7f84e6aca2781f9bdc096.tar.bz2 xen-494c9074b3dc32b7b3b7f84e6aca2781f9bdc096.zip |
tools: do not link against unused libraries.
A fair few things under tools link against libraries which they don't
even use.
Most of this appears to come from copy-and-pasting previous Makefile
snippets and cargo-culting plus the tendency to define global $(LIBS)
even for Makefiles which build multiple separate utilities or
libraries.
Identified by comparing a build with --as-needed to one without by
looking at the NEEDED header of all ELF objects.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/xcutils/lsevtchn.c')
-rw-r--r-- | tools/xcutils/lsevtchn.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/xcutils/lsevtchn.c b/tools/xcutils/lsevtchn.c index e79fe0990a..d1710613dd 100644 --- a/tools/xcutils/lsevtchn.c +++ b/tools/xcutils/lsevtchn.c @@ -4,9 +4,7 @@ #include <string.h> #include <stdio.h> -#include <xs.h> #include <xenctrl.h> -#include <xenguest.h> int main(int argc, char **argv) { |