commit: ffbde6e64183dd733002c25aaa649564c37ff813 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Sun Mar 17 07:09:00 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Mar 17 07:49:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffbde6e6
sci-libs/pdal: mark as LTO-unsafe, strict-aliasing unsafe ... but only for USE=debug, since the bug is inside the obscure libunwind support which most people don't use anyway. Closes: https://bugs.gentoo.org/862915 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/pdal/pdal-2.6.2.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sci-libs/pdal/pdal-2.6.2.ebuild b/sci-libs/pdal/pdal-2.6.2.ebuild index 5a1dd8a8193e..a5c701ad7ee0 100644 --- a/sci-libs/pdal/pdal-2.6.2.ebuild +++ b/sci-libs/pdal/pdal-2.6.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake +inherit cmake flag-o-matic DESCRIPTION="A C++ library for translating and manipulating point cloud data" HOMEPAGE="https://pdal.io/" @@ -39,6 +39,16 @@ DEPEND=" S="${WORKDIR}/PDAL-${PV}-src" src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/862915 + # https://github.com/PDAL/PDAL/issues/3836 + # + # only occurs inside unwind support + if use debug; then + append-flags -fno-strict-aliasing + filter-lto + fi + local mycmakeargs=( -DBUILD_PLUGIN_PGPOINTCLOUD="$(usex postgres)" -DWITH_COMPLETION=ON
