commit:     b288d27d592d05222b193aed7ced2712861f1df5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  6 12:09:29 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov  6 12:10:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b288d27d

media-libs/libglvnd: filter LTO for GCC 16 for now

Hit by the top-level asm partitioning changes. Not worrying about this
for now as more work is ongoing.

Keeping bug open as we want to revisit this befor release.

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

 media-libs/libglvnd/libglvnd-1.7.0.ebuild | 8 +++++++-
 media-libs/libglvnd/libglvnd-9999.ebuild  | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/media-libs/libglvnd/libglvnd-1.7.0.ebuild 
b/media-libs/libglvnd/libglvnd-1.7.0.ebuild
index aa3c8d2528d0..53b02538b8f6 100644
--- a/media-libs/libglvnd/libglvnd-1.7.0.ebuild
+++ b/media-libs/libglvnd/libglvnd-1.7.0.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{10..14} )
 VIRTUALX_REQUIRED=manual
 
-inherit meson-multilib python-any-r1 virtualx
+inherit meson-multilib flag-o-matic python-any-r1 toolchain-funcs virtualx
 
 DESCRIPTION="The GL Vendor-Neutral Dispatch library"
 HOMEPAGE="https://gitlab.freedesktop.org/glvnd/libglvnd";
@@ -43,6 +43,12 @@ src_prepare() {
                bin/symbols-check.py || die
 }
 
+src_configure() {
+       # Workaround for bug #965545
+       tc-is-gcc && [[ $(gcc-major-version) -eq 16 ]] && filter-lto
+       meson-multilib_src_configure
+}
+
 multilib_src_configure() {
        local emesonargs=(
                $(meson_feature X x11)

diff --git a/media-libs/libglvnd/libglvnd-9999.ebuild 
b/media-libs/libglvnd/libglvnd-9999.ebuild
index 54fce721c754..b5fe83df648e 100644
--- a/media-libs/libglvnd/libglvnd-9999.ebuild
+++ b/media-libs/libglvnd/libglvnd-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{10..14} )
 VIRTUALX_REQUIRED=manual
 
-inherit meson-multilib python-any-r1 virtualx
+inherit meson-multilib flag-o-matic python-any-r1 toolchain-funcs virtualx
 
 DESCRIPTION="The GL Vendor-Neutral Dispatch library"
 HOMEPAGE="https://gitlab.freedesktop.org/glvnd/libglvnd";
@@ -41,6 +41,12 @@ src_prepare() {
                bin/symbols-check.py || die
 }
 
+src_configure() {
+       # Workaround for bug #965545
+       tc-is-gcc && [[ $(gcc-major-version) -eq 16 ]] && filter-lto
+       meson-multilib_src_configure
+}
+
 multilib_src_configure() {
        local emesonargs=(
                $(meson_feature X x11)

Reply via email to