Skip to contentSkip to conversation

package/quagga: add optional support for libcap

PATCH New Bernd Kuhls 2 participants 2 messages Feb 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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]
[...]

---
v2: moved BR2_PACKAGE_LIBCAP code block (Thomas)

 package/quagga/quagga.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/quagga/quagga.mk +7 -0
index c5dd2ba..4a55594 100644
@@ -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)
Signature · 1 line
2.7.0
#1 lore raw

PATCH v2 1/1 package/quagga: add optional support for libcap

Dear Bernd Kuhls,

Quoted 10 lines · Bernd Kuhls

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]
[...]

---
v2: moved BR2_PACKAGE_LIBCAP code block (Thomas)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com