[Buildroot] [PATCH 1/1] package/frr: add libcap support
Fabrice Fontaine
fontaine.fabrice at gmail.com
Tue Dec 14 21:10:51 UTC 2021
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
package/frr/frr.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/package/frr/frr.mk b/package/frr/frr.mk
index e707f50ca1..49b4a190f0 100644
--- a/package/frr/frr.mk
+++ b/package/frr/frr.mk
@@ -29,11 +29,17 @@ FRR_CONF_OPTS = --with-clippy=$(HOST_DIR)/bin/clippy \
--enable-user=frr \
--enable-group=frr \
--enable-vty-group=frrvty \
- --disable-capabilities \
--enable-fpm
HOST_FRR_CONF_OPTS = --enable-clippy-only
+ifeq ($(BR2_PACKAGE_LIBCAP),y)
+FRR_DEPENDENCIES += libcap
+FRR_CONF_OPTS += --enable-capabilities
+else
+FRR_CONF_OPTS += --disable-capabilities
+endif
+
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
FRR_CONF_ENV += LIBS=-latomic
endif
--
2.33.0
More information about the buildroot
mailing list