commit:     10d4c8fe0fecdefe4cc543a45dfb051a5f06b344
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar 15 04:38:01 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 04:42:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10d4c8fe

sys-cluster/charm: mark as LTO-unsafe, strict-aliasing unsafe

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

 sys-cluster/charm/charm-6.8.2.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/charm/charm-6.8.2.ebuild 
b/sys-cluster/charm/charm-6.8.2.ebuild
index 1ff82273b8c5..0b731f6bbcd0 100644
--- a/sys-cluster/charm/charm-6.8.2.ebuild
+++ b/sys-cluster/charm/charm-6.8.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -61,6 +61,14 @@ get_opts() {
 }
 
 src_prepare() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/863725
+       # https://github.com/UIUC-PPL/charm/issues/3789
+       #
+       # Do not trust with LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        append-cppflags $($(tc-getPKG_CONFIG) --cflags libtirpc)
 
        sed \

Reply via email to