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

Closes: https://bugs.gentoo.org/863725
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Eli Schwartz
2024-03-15 00:38:01 -04:00
committed by Sam James
parent 90a175584b
commit 10d4c8fe0f

View File

@@ -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 \