commit: 36743b3902395fde41a127aabdcb6e3d911ddaf1 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Tue Apr 9 04:16:15 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Apr 9 14:43:29 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36743b39
media-libs/openpgl: mark as LTO-unsafe, strict-aliasing unsafe Note: Upstream updating to set -fno-strict-aliasing is not the same as fixing the issue. Closes: https://bugs.gentoo.org/926890 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-libs/openpgl/openpgl-0.5.0-r1.ebuild | 7 +++++++ media-libs/openpgl/openpgl-0.6.0.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/media-libs/openpgl/openpgl-0.5.0-r1.ebuild b/media-libs/openpgl/openpgl-0.5.0-r1.ebuild index 79487e34b3a1..75a81e52b091 100644 --- a/media-libs/openpgl/openpgl-0.5.0-r1.ebuild +++ b/media-libs/openpgl/openpgl-0.5.0-r1.ebuild @@ -29,6 +29,13 @@ RDEPEND=" DEPEND="${RDEPEND}" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/926890 + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DOPENPGL_ISA_SSE4="$(usex cpu_flags_x86_sse4_2)" -DOPENPGL_ISA_AVX2="$(usex cpu_flags_x86_avx2)" diff --git a/media-libs/openpgl/openpgl-0.6.0.ebuild b/media-libs/openpgl/openpgl-0.6.0.ebuild index 79487e34b3a1..07d8adf9d845 100644 --- a/media-libs/openpgl/openpgl-0.6.0.ebuild +++ b/media-libs/openpgl/openpgl-0.6.0.ebuild @@ -29,6 +29,13 @@ RDEPEND=" DEPEND="${RDEPEND}" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/926890 + # + # Upstream "solved" this by setting -fno-strict-aliasing themselves. + # Do not trust with LTO. + filter-lto + local mycmakeargs=( -DOPENPGL_ISA_SSE4="$(usex cpu_flags_x86_sse4_2)" -DOPENPGL_ISA_AVX2="$(usex cpu_flags_x86_avx2)"
