From 3b05cbc43c32d8c519df31a6ccabd17ebd0d6d19 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 20 Mar 2024 23:05:50 -0400 Subject: sci-libs/mumps: mark as LTO-unsafe, strict-aliasing unsafe I would like to report this upstream. However, the only contact method is their mailing list. And their mailing list may or may not work -- I find it hard to tell because I've never seen the interface before, but it is mostly in French and the bit that I recognized doesn't seem to have working links to e.g. the archive. Closes: https://bugs.gentoo.org/862903 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- sci-libs/mumps/mumps-5.3.5-r1.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sci-libs') diff --git a/sci-libs/mumps/mumps-5.3.5-r1.ebuild b/sci-libs/mumps/mumps-5.3.5-r1.ebuild index 705a251a15d6..8df93f5e4e8c 100644 --- a/sci-libs/mumps/mumps-5.3.5-r1.ebuild +++ b/sci-libs/mumps/mumps-5.3.5-r1.ebuild @@ -63,6 +63,16 @@ static_to_shared() { } src_prepare() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/862903 + # + # There is an upstream mailing list but it seems to be broken. I *think*, + # because it's all in French. I tried and failed to report the bug. + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + # workaround for gcc10 (bug #743442) append-fflags $(test-flags-FC -fallow-argument-mismatch) -- cgit v1.2.3-65-gdbad