From 34ed9656006785e22a1904d3e2b9d026f2c68407 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Fri, 14 Jul 2023 14:57:03 +0200 Subject: [PATCH] net-misc/bird: backport ::gentoo --- net-misc/bird/bird-2.13.1.ebuild | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/net-misc/bird/bird-2.13.1.ebuild b/net-misc/bird/bird-2.13.1.ebuild index e770eed..327ad67 100644 --- a/net-misc/bird/bird-2.13.1.ebuild +++ b/net-misc/bird/bird-2.13.1.ebuild @@ -36,6 +36,10 @@ FILECAPS=( CAP_NET_RAW usr/sbin/bird ) +PATCHES=( + "${FILESDIR}/${P}-musl-tests.patch" +) + src_prepare() { default eautoreconf @@ -45,14 +49,6 @@ src_configure() { # This export makes compilation and test phases verbose export VERBOSE=1 - # lto must be enabled by default as bird is mono-threaded and use several - # optimisations to be fast, at it may very likely be exposed to several - # thounsand BGP updates per seconds - # Although, we make it possible to desactivate it if wanted - if use custom-cflags; then - export bird_cv_c_lto=no - fi - protocols="bfd babel bgp mrt ospf perf pipe radv rip rpki static" if use bmp; then protocols="${protocols} bmp" @@ -66,6 +62,12 @@ src_configure() { $(use_enable libssh) ) + # lto must be enabled by default as bird is mono-threaded and use several + # optimisations to be fast, as it may very likely be exposed to several + # thounsand BGP updates per seconds + # Although, we make it possible to deactivate it if wanted + use custom-cflags && myargs+=( bird_cv_c_lto=no ) + econf "${myargs[@]}" }