* [Buildroot] [PATCH v2 1/1] package/quagga: add optional support for libcap
@ 2016-02-21 18:00 Bernd Kuhls
2016-02-21 20:30 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-02-21 18:00 UTC (permalink / raw)
To: buildroot
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>
---
v2: moved BR2_PACKAGE_LIBCAP code block (Thomas)
package/quagga/quagga.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/quagga/quagga.mk b/package/quagga/quagga.mk
index c5dd2ba..4a55594 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)
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/quagga: add optional support for libcap
2016-02-21 18:00 [Buildroot] [PATCH v2 1/1] package/quagga: add optional support for libcap Bernd Kuhls
@ 2016-02-21 20:30 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-21 20:30 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sun, 21 Feb 2016 19:00:45 +0100, Bernd Kuhls wrote:
> 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>
> ---
> v2: moved BR2_PACKAGE_LIBCAP code block (Thomas)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-21 20:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 18:00 [Buildroot] [PATCH v2 1/1] package/quagga: add optional support for libcap Bernd Kuhls
2016-02-21 20:30 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox