commit: 3b05cbc43c32d8c519df31a6ccabd17ebd0d6d19 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Thu Mar 21 03:05:50 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Mar 21 05:57:37 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b05cbc4
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 <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/mumps/mumps-5.3.5-r1.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)