net-misc/bird: backport ::gentoo
This commit is contained in:
parent
ec2a6e150f
commit
34ed965600
|
@ -36,6 +36,10 @@ FILECAPS=(
|
||||||
CAP_NET_RAW usr/sbin/bird
|
CAP_NET_RAW usr/sbin/bird
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${P}-musl-tests.patch"
|
||||||
|
)
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
eautoreconf
|
eautoreconf
|
||||||
|
@ -45,14 +49,6 @@ src_configure() {
|
||||||
# This export makes compilation and test phases verbose
|
# This export makes compilation and test phases verbose
|
||||||
export VERBOSE=1
|
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"
|
protocols="bfd babel bgp mrt ospf perf pipe radv rip rpki static"
|
||||||
if use bmp; then
|
if use bmp; then
|
||||||
protocols="${protocols} bmp"
|
protocols="${protocols} bmp"
|
||||||
|
@ -66,6 +62,12 @@ src_configure() {
|
||||||
$(use_enable libssh)
|
$(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[@]}"
|
econf "${myargs[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue