From 5ae637afdee78946d12c798b55a116565c8130aa Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 2 Mar 2022 14:11:36 +0100 Subject: Drop support for non-gcrypt builds. * As there is now a builtin, lightweight libgcrypt there is no need to disable tls-clho decryption. * It is still possible to use a host libgcrypt with `--with-local-libgcrypt'. Signed-off-by: Toni Uhlig --- src/lib/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/Makefile.in') diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in index e3a3f9a9a..67ed0c758 100644 --- a/src/lib/Makefile.in +++ b/src/lib/Makefile.in @@ -25,6 +25,12 @@ NDPI_LIB_STATIC = libndpi.a NDPI_LIB_SHARED_BASE = libndpi.so NDPI_LIB_SHARED = $(NDPI_LIB_SHARED_BASE).@NDPI_VERSION_SHORT@ NDPI_LIBS = $(NDPI_LIB_STATIC) $(NDPI_LIB_SHARED) +USE_HOST_LIBGCRYPT = @USE_HOST_LIBGCRYPT@ + +ifneq ($(USE_HOST_LIBGCRYPT),0) +TMP_OBJS := $(OBJECTS) +OBJECTS = $(filter-out third_party/src/gcrypt_light.o,$(TMP_OBJS)) +endif ifneq ($(OS),Windows_NT) OS := $(shell uname) -- cgit v1.2.3