summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-04 23:20:15 -0500
committerSam James <sam@gentoo.org>2024-03-05 04:47:53 +0000
commitd58f870d7043f3891c0fd707bd55c912368b9486 (patch)
treec7af46f997284a97dd42074814481d8c2ba420b0 /net-libs/rtrlib
parentmedia-sound/din: mark as LTO-unsafe (diff)
downloadgentoo-d58f870d7043f3891c0fd707bd55c912368b9486.tar.gz
gentoo-d58f870d7043f3891c0fd707bd55c912368b9486.tar.bz2
gentoo-d58f870d7043f3891c0fd707bd55c912368b9486.zip
net-libs/rtrlib: mark as LTO-unsafe, strict-aliasing unsafe
Closes: https://bugs.gentoo.org/861581 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/rtrlib')
-rw-r--r--net-libs/rtrlib/rtrlib-0.8.0.ebuild10
1 files changed, 9 insertions, 1 deletions
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)
)