diff options
author | Alarig Le Lay <alarig@swordarmor.fr> | 2023-03-07 19:11:57 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-08 22:40:15 +0000 |
commit | 447ab933512e18f1d9d3e37cdf84b8b8d12f08e4 (patch) | |
tree | d2ba1af0ba80503c8a655de88cd266d8aff0de3e /net-misc/bird | |
parent | sci-mathematics/cubicle: require ocamlopt (diff) | |
download | gentoo-447ab933512e18f1d9d3e37cdf84b8b8d12f08e4.tar.gz gentoo-447ab933512e18f1d9d3e37cdf84b8b8d12f08e4.tar.bz2 gentoo-447ab933512e18f1d9d3e37cdf84b8b8d12f08e4.zip |
net-misc/bird: Using custom-cflags to make lto optionnal
Closes: https://bugs.gentoo.org/781923
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
Closes: https://github.com/gentoo/gentoo/pull/29980
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/bird')
-rw-r--r-- | net-misc/bird/bird-2.0.12.ebuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net-misc/bird/bird-2.0.12.ebuild b/net-misc/bird/bird-2.0.12.ebuild index 11b8c7484e39..043f67e052c9 100644 --- a/net-misc/bird/bird-2.0.12.ebuild +++ b/net-misc/bird/bird-2.0.12.ebuild @@ -12,7 +12,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos" -IUSE="+client debug libssh" +IUSE="+client custom-cflags debug libssh" RDEPEND=" client? ( @@ -56,6 +56,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[@]}" } |