diff options
| author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-11 14:34:16 +0200 | 
|---|---|---|
| committer | Daniel Borkmann <dborkman@redhat.com> | 2013-07-11 14:34:16 +0200 | 
| commit | 5cbeddbe19f6001d540b062deb3618200c8ca372 (patch) | |
| tree | e92ebd16150361d1337af69d35c6c3a6fc09f973 /netsniff-ng | |
| parent | aae407f55ffb2ce5211898559b81898af8d9d994 (diff) | |
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 <dborkman@redhat.com>
Diffstat (limited to 'netsniff-ng')
| -rw-r--r-- | netsniff-ng/Makefile | 10 | 
1 files changed, 5 insertions, 5 deletions
| 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) | 
