From d58f870d7043f3891c0fd707bd55c912368b9486 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 4 Mar 2024 23:20:15 -0500 Subject: net-libs/rtrlib: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/861581 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- net-libs/rtrlib/rtrlib-0.8.0.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'net-libs') diff --git a/net-libs/rtrlib/rtrlib-0.8.0.ebuild b/net-libs/rtrlib/rtrlib-0.8.0.ebuild index d903cb14d3bb..50d2d94eb403 100644 --- a/net-libs/rtrlib/rtrlib-0.8.0.ebuild +++ b/net-libs/rtrlib/rtrlib-0.8.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="An open-source C implementation of the RPKI/Router Protocol client" HOMEPAGE="https://rtrlib.realmv6.org/" @@ -32,6 +32,14 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861581 + # https://github.com/rtrlib/rtrlib/issues/287 + # + # Do not trust LTO either. + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DRTRLIB_TRANSPORT_SSH=$(usex ssh) ) -- cgit v1.2.3-65-gdbad