commit:     08fe00866f53dbadfa0cf845c5dd0373d9dfafd6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 13 00:43:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 13 00:43:54 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08fe0086

x11-libs/wxGTK: filter -fno-semantic-interposition with LTO

Same as 3f9bf9b7864852284a7ad6e48e96cf4cc4085fcb and 
4cf1d792f97f62ec5912a8d67c4286b65a8e0365.

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

 x11-libs/wxGTK/wxGTK-3.2.8.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11-libs/wxGTK/wxGTK-3.2.8.ebuild 
b/x11-libs/wxGTK/wxGTK-3.2.8.ebuild
index 38fba1b7d2a7..5a3fd91a45dd 100644
--- a/x11-libs/wxGTK/wxGTK-3.2.8.ebuild
+++ b/x11-libs/wxGTK/wxGTK-3.2.8.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit multilib-minimal flag-o-matic
+inherit multilib-minimal flag-o-matic toolchain-funcs
 
 WXSUBVERSION="${PV}-gtk3"                              # 3.2.6-gtk3
 WXVERSION="$(ver_cut 1-3)"                             # 3.2.6
@@ -127,6 +127,9 @@ multilib_src_configure() {
        use wayland || append-cflags -DGENTOO_GTK_HIDE_WAYLAND
        use X || append-cflags -DGENTOO_GTK_HIDE_X11
 
+       # bug #952961
+       tc-is-lto && filter-flags -fno-semantic-interposition
+
        # Workaround for bug #915154
        append-ldflags $(test-flags-CCLD -Wl,--undefined-version)
 

Reply via email to