commit:     c33c578e0eaeda556d7b5467fce0e97726c0d8f5
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Mar 20 03:58:33 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 20 06:17:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c33c578e

sci-biology/muscle: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/862276
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-biology/muscle/muscle-3.8.31.ebuild | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/sci-biology/muscle/muscle-3.8.31.ebuild 
b/sci-biology/muscle/muscle-3.8.31.ebuild
index e47f5f66cf46..faefc5b1a280 100644
--- a/sci-biology/muscle/muscle-3.8.31.ebuild
+++ b/sci-biology/muscle/muscle-3.8.31.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 MY_P="${PN}${PV}_src"
 
@@ -22,6 +22,14 @@ S="${WORKDIR}"/${PN}${PV}/src
 PATCHES=( "${FILESDIR}"/${PV}-make.patch )
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/862276
+       # Fixed upstream in later releases
+       #
+       # Do not trust with LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        tc-export CXX
 }
 

Reply via email to