From ffbde6e64183dd733002c25aaa649564c37ff813 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 17 Mar 2024 03:09:00 -0400 Subject: 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 Signed-off-by: Sam James --- sci-libs/pdal/pdal-2.6.2.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sci-libs') 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 -- cgit v1.2.3-65-gdbad