From 6a116366064c52bcde98f7b4cfbbfe8d6c9f957b Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 10 Feb 2016 21:58:54 +0100 Subject: [PATCH] package/ulogd: add optional support for jansson When jansson was compiled before, ulogd will use it as optional dependency: $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/ulogd/ulogd_output_JSON.so | grep NEEDED 0x00000001 (NEEDED) Shared library: [libjansson.so.4] 0x00000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/ulogd/ulogd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/ulogd/ulogd.mk b/package/ulogd/ulogd.mk index 7730198047..363b8c818e 100644 --- a/package/ulogd/ulogd.mk +++ b/package/ulogd/ulogd.mk @@ -29,4 +29,11 @@ else ULOGD_CONF_OPTS += --with-mysql=no --without-sqlite endif +ifeq ($(BR2_PACKAGE_JANSSON),y) +ULOGD_CONF_OPTS += --with-jansson +ULOGD_DEPENDENCIES += jansson +else +ULOGD_CONF_OPTS += --without-jansson +endif + $(eval $(autotools-package)) -- 2.30.2