commit: e31da288a2f874bffb148a11ce0ef28eb0052d14 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Wed Apr 3 20:02:43 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Apr 5 01:20:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e31da288
media-gfx/openvdb: mark as LTO-unsafe, strict-aliasing unsafe Test-only issue, but this prevents testing that LTO actually works. ;) Closes: https://bugs.gentoo.org/926820 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> media-gfx/openvdb/openvdb-10.0.1.ebuild | 8 +++++++- media-gfx/openvdb/openvdb-11.0.0.ebuild | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/media-gfx/openvdb/openvdb-10.0.1.ebuild b/media-gfx/openvdb/openvdb-10.0.1.ebuild index 287893b0cff4..5a0a42c5aed3 100644 --- a/media-gfx/openvdb/openvdb-10.0.1.ebuild +++ b/media-gfx/openvdb/openvdb-10.0.1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit cmake cuda llvm python-single-r1 +inherit cmake cuda flag-o-matic llvm python-single-r1 DESCRIPTION="Library for the efficient manipulation of volumetric data" HOMEPAGE="https://www.openvdb.org" @@ -100,6 +100,12 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/926820 + # https://github.com/AcademySoftwareFoundation/openvdb/issues/1784 + append-flags -fno-strict-aliasing + filter-lto + local myprefix="${EPREFIX}/usr/" local version diff --git a/media-gfx/openvdb/openvdb-11.0.0.ebuild b/media-gfx/openvdb/openvdb-11.0.0.ebuild index 056d464f7218..35a71fe06c64 100644 --- a/media-gfx/openvdb/openvdb-11.0.0.ebuild +++ b/media-gfx/openvdb/openvdb-11.0.0.ebuild @@ -352,6 +352,12 @@ my_src_install() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/926820 + # https://github.com/AcademySoftwareFoundation/openvdb/issues/1784 + append-flags -fno-strict-aliasing + filter-lto + multibuild_foreach_variant my_src_configure }
