mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
net-dns/dnsdist: disable LTO for mixed C++/Rust configuration
There is currently no good or reliable way to make this work, due to myriad combinations of compilers, linkers and limitations of the Rust toolchain. Closes: https://bugs.gentoo.org/963128 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43861 Closes: https://github.com/gentoo/gentoo/pull/43861 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
e0bcff7692
commit
7bfa843e2b
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{11..14} )
|
||||
RUST_MIN_VER=1.85.1
|
||||
RUST_OPTIONAL=1
|
||||
|
||||
inherit cargo flag-o-matic lua-single python-any-r1
|
||||
inherit cargo flag-o-matic lua-single python-any-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="A highly DNS-, DoS- and abuse-aware loadbalancer"
|
||||
HOMEPAGE="https://www.dnsdist.org/index.html"
|
||||
@@ -77,6 +77,13 @@ src_configure() {
|
||||
# bug #822855
|
||||
append-lfs-flags
|
||||
|
||||
# There is currently no reliable way to handle mixed C++/Rust + LTO
|
||||
# correctly: https://bugs.gentoo.org/963128
|
||||
if use yaml && tc-is-lto ; then
|
||||
ewarn "Disabling LTO because of mixed C++/Rust toolchains."
|
||||
filter-lto
|
||||
fi
|
||||
|
||||
# some things can only be enabled/disabled by defines
|
||||
! use dnstap && append-cppflags -DDISABLE_PROTOBUF
|
||||
! use web && append-cppflags -DDISABLE_BUILTIN_HTML
|
||||
|
||||
Reference in New Issue
Block a user