summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/clamav/clamav.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/clamav/clamav.mk b/package/clamav/clamav.mk
index 86bdda49e2..5d57b8dc00 100644
--- a/package/clamav/clamav.mk
+++ b/package/clamav/clamav.mk
@@ -48,6 +48,13 @@ else
CLAMAV_CONF_OPTS += --disable-bzip2
endif
+ifeq ($(BR2_PACKAGE_JSON_C),y)
+CLAMAV_CONF_OPTS += --with-libjson=$(STAGING_DIR)/usr
+CLAMAV_DEPENDENCIES += json-c
+else
+CLAMAV_CONF_OPTS += --without-libjson
+endif
+
ifeq ($(BR2_PACKAGE_LIBXML2),y)
CLAMAV_CONF_OPTS += --with-xml=$(STAGING_DIR)/usr
CLAMAV_DEPENDENCIES += libxml2
OpenPOWER on IntegriCloud