[Buildroot] [PATCH 6/7] package/avahi: add optional support for libcap
Bernd Kuhls
bernd.kuhls at t-online.de
Sun Feb 21 14:48:44 UTC 2016
When libcap was compiled before, avahi will use it as optional
dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/avahi-daemon | grep NEEDED | sort
0x0000000000000001 (NEEDED) Shared library: [libavahi-common.so.3]
0x0000000000000001 (NEEDED) Shared library: [libavahi-core.so.7]
0x0000000000000001 (NEEDED) Shared library: [libcap.so.2]
[...]
The build system offers no option to en-/disable libcap support:
http://git.0pointer.net/avahi.git/tree/configure.ac#n382
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
package/avahi/avahi.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk
index 5d6e6a8..ce89e42 100644
--- a/package/avahi/avahi.mk
+++ b/package/avahi/avahi.mk
@@ -117,6 +117,9 @@ endif
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y)
AVAHI_DEPENDENCIES += expat
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+AVAHI_DEPENDENCIES += libcap
+endif
AVAHI_CONF_OPTS += --with-xml=expat
else
AVAHI_CONF_OPTS += --with-xml=none
--
2.7.0
More information about the buildroot
mailing list