From 9ad7f888209707b491f6ce6226bfca71675a27c6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 23 Jul 2014 15:53:41 +0200 Subject: 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 --- astraceroute.c | 1 - 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 = -- cgit v1.2.3-54-g00ecf