[Buildroot] [PATCH 7/7] package/quagga: add optional support for libcap

Bernd Kuhls bernd.kuhls at t-online.de
Sun Feb 21 14:48:45 UTC 2016


When libcap was compiled before, quagga will use it as optional
dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/vtysh | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [libcap.so.2]
[...]

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
---
 package/quagga/quagga.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/quagga/quagga.mk b/package/quagga/quagga.mk
index c5dd2ba..30e8233 100644
--- a/package/quagga/quagga.mk
+++ b/package/quagga/quagga.mk
@@ -37,6 +37,12 @@ endif
 ifeq ($(BR2_PACKAGE_QUAGGA_VTYSH),y)
 QUAGGA_CONF_OPTS += --enable-vtysh
 QUAGGA_DEPENDENCIES += readline
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+QUAGGA_CONF_OPTS += --enable-capabilities
+QUAGGA_DEPENDENCIES += libcap
+else
+QUAGGA_CONF_OPTS += --disable-capabilities
+endif
 else
 QUAGGA_CONF_OPTS += --disable-vtysh
 endif
-- 
2.7.0




More information about the buildroot mailing list