From 5cbeddbe19f6001d540b062deb3618200c8ca372 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 11 Jul 2013 14:34:16 +0200 Subject: configure, netsniff-ng: if no libgeopip, do not link against libz In netsniff-ng, we only use libz in combination with libgeoip, so if we lack either one of them, do not link against the other either. This would be a waste otherwise. Signed-off-by: Daniel Borkmann --- netsniff-ng/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'netsniff-ng/Makefile') diff --git a/netsniff-ng/Makefile b/netsniff-ng/Makefile index fb913d6..55335e5 100644 --- a/netsniff-ng/Makefile +++ b/netsniff-ng/Makefile @@ -1,13 +1,13 @@ netsniff-ng-libs = $(shell pkg-config --libs libnl-3.0) \ $(shell pkg-config --libs libnl-genl-3.0) \ - -lpthread \ - -lz + -lpthread ifeq ($(CONFIG_LIBPCAP), 1) netsniff-ng-libs += -lpcap endif -ifeq ($(CONFIG_LIBGEOIP), 1) -netsniff-ng-libs += -lGeoIP +ifeq ($(CONFIG_GEOIP), 1) +netsniff-ng-libs += -lGeoIP \ + -lz endif netsniff-ng-objs = dissector.o \ @@ -66,7 +66,7 @@ netsniff-ng-objs = dissector.o \ ifeq ($(CONFIG_LIBPCAP), 1) netsniff-ng-objs += bpf_comp.o endif -ifeq ($(CONFIG_LIBGEOIP), 1) +ifeq ($(CONFIG_GEOIP), 1) netsniff-ng-objs += geoip.o endif ifeq ($(CONFIG_HWTSTAMP), 1) -- cgit v1.2.3-54-g00ecf