commit:     b8030fc3ddb9c211265f0a5cc48d5867c2fa0f70
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 25 07:39:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 25 07:39:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8030fc3

sci-libs/geos: don't filter LTO

It was fixed upstream in >=3.13.0. I do get the mysterious virtual issue
w/ -fno-semantic-interposition and LTO but ignoring that and just filtering
it in that case.

Bug: https://bugs.gentoo.org/862702
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/geos/geos-3.13.1.ebuild | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/sci-libs/geos/geos-3.13.1.ebuild b/sci-libs/geos/geos-3.13.1.ebuild
index 02f5a3b75192..89f000cff4d4 100644
--- a/sci-libs/geos/geos-3.13.1.ebuild
+++ b/sci-libs/geos/geos-3.13.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake flag-o-matic
+inherit cmake flag-o-matic toolchain-funcs
 
 DESCRIPTION="Geometry engine library for Geographic Information Systems"
 HOMEPAGE="https://libgeos.org/";
@@ -18,10 +18,7 @@ RESTRICT="!test? ( test )"
 BDEPEND="doc? ( app-text/doxygen )"
 
 src_configure() {
-       # -Werror=odr
-       # https://bugs.gentoo.org/862702
-       # https://github.com/libgeos/geos/issues/1054
-       filter-lto
+       tc-is-lto && filter-flags -fno-semantic-interposition
 
        local mycmakeargs=(
                -DBUILD_DOCUMENTATION=$(usex doc)

Reply via email to