From: Bernd Kuhls Date: Wed, 10 Feb 2016 20:58:55 +0000 (+0100) Subject: package/ulogd: add optional support for libpcap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b37ecac8e2e50fd187ca6a1d08ad2094a8a1fcec;p=buildroot.git package/ulogd: add optional support for libpcap When libpcap 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_PCAP.so | grep NEEDED 0x00000001 (NEEDED) Shared library: [libpcap.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.1] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/ulogd/ulogd.mk b/package/ulogd/ulogd.mk index 363b8c818e..4017edc7bf 100644 --- a/package/ulogd/ulogd.mk +++ b/package/ulogd/ulogd.mk @@ -29,6 +29,13 @@ else ULOGD_CONF_OPTS += --with-mysql=no --without-sqlite endif +ifeq ($(BR2_PACKAGE_LIBPCAP),y) +ULOGD_CONF_OPTS += --with-pcap +ULOGD_DEPENDENCIES += libpcap +else +ULOGD_CONF_OPTS += --without-pcap +endif + ifeq ($(BR2_PACKAGE_JANSSON),y) ULOGD_CONF_OPTS += --with-jansson ULOGD_DEPENDENCIES += jansson