summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-21 19:00:45 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 21:30:40 +0100
commit00351a541b3577ed4cddf107a3d757e6348fd406 (patch)
tree40d81b88d424589951a90f644b26cca34b94f2ea /package
parentd5646b51098cddce56e959defe90fe03fe2104fe (diff)
downloadbuildroot-00351a541b3577ed4cddf107a3d757e6348fd406.tar.gz
buildroot-00351a541b3577ed4cddf107a3d757e6348fd406.zip
package/quagga: add optional support for libcap
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@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/quagga/quagga.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/quagga/quagga.mk b/package/quagga/quagga.mk
index c5dd2ba4e2..4a5559401c 100644
--- a/package/quagga/quagga.mk
+++ b/package/quagga/quagga.mk
@@ -14,6 +14,13 @@ QUAGGA_CONF_OPTS = --program-transform-name=''
# 0002-configure-fix-static-linking-with-readline.patch
QUAGGA_AUTORECONF = YES
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+QUAGGA_CONF_OPTS += --enable-capabilities
+QUAGGA_DEPENDENCIES += libcap
+else
+QUAGGA_CONF_OPTS += --disable-capabilities
+endif
+
QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_ZEBRA),--enable-zebra,--disable-zebra)
QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BABELD),--enable-babeld,--disable-babeld)
QUAGGA_CONF_OPTS += $(if $(BR2_PACKAGE_QUAGGA_BGPD),--enable-bgpd,--disable-bgpd)
OpenPOWER on IntegriCloud