diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2014-07-23 15:53:41 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2014-07-23 15:53:41 +0200 |
commit | 9ad7f888209707b491f6ce6226bfca71675a27c6 (patch) | |
tree | 4cdbc0dd37afa4976e8c8b46174bf73f3801b252 | |
parent | 134a7beb7abb77cd3e63a59591f54ea2ddde8890 (diff) |
build: astraceroute: Only build ioops with GeoIP support enabled
The ioops module is only needed in geoip.o, thus make it dependent on
CONFIG_GEOIP.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | astraceroute.c | 1 | ||||
-rw-r--r-- | astraceroute/Makefile | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/astraceroute.c b/astraceroute.c index da922c6..6b2ffc5 100644 --- a/astraceroute.c +++ b/astraceroute.c @@ -40,7 +40,6 @@ #include "pkt_buff.h" #include "proto.h" #include "xmalloc.h" -#include "ioops.h" #include "csum.h" #include "sock.h" #include "geoip.h" diff --git a/astraceroute/Makefile b/astraceroute/Makefile index 1972a12..6fd0b17 100644 --- a/astraceroute/Makefile +++ b/astraceroute/Makefile @@ -7,7 +7,6 @@ endif astraceroute-objs = xmalloc.o \ - ioops.o \ proto_none.o \ tprintf.o \ bpf.o \ @@ -20,7 +19,8 @@ astraceroute-objs = xmalloc.o \ astraceroute.o ifeq ($(CONFIG_GEOIP), 1) -astraceroute-objs += geoip.o +astraceroute-objs += geoip.o \ + ioops.o endif astraceroute-eflags = |