From: Bernd Kuhls Date: Sat, 20 Feb 2016 19:51:15 +0000 (+0100) Subject: package/syslog-ng: add optional support for libcap X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fee0703d8cf7ebc99cc8094425e10cb382731f4c;p=buildroot.git package/syslog-ng: add optional support for libcap When libcap was compiled before, syslog-ng will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/syslog-ng | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [libcap.so.2] [...] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/syslog-ng/syslog-ng.mk b/package/syslog-ng/syslog-ng.mk index 5f48a79168..54593e4572 100644 --- a/package/syslog-ng/syslog-ng.mk +++ b/package/syslog-ng/syslog-ng.mk @@ -20,6 +20,13 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y) SYSLOG_NG_DEPENDENCIES += busybox endif +ifeq ($(BR2_PACKAGE_LIBCAP),y) +SYSLOG_NG_DEPENDENCIES += libcap +SYSLOG_NG_CONF_OPTS += --enable-linux-caps +else +SYSLOG_NG_CONF_OPTS += --disable-linux-caps +endif + ifeq ($(BR2_PACKAGE_PYTHON),y) SYSLOG_NG_DEPENDENCIES += python SYSLOG_NG_CONF_OPTS += \