Disable LTO globally

Resolves: https://issues.redhat.com/browse/RHEL-128249
This commit is contained in:
José Expósito 2025-11-14 09:17:40 +01:00 committed by José Expósito
parent ce16ae464d
commit 08a6793e88

View File

@ -73,6 +73,11 @@
%global vendor_nvk_crates 1
%endif
# We've gotten a report that enabling LTO for mesa breaks some games. See
# https://bugzilla.redhat.com/show_bug.cgi?id=1862771 for details.
# Disable LTO for now
%global _lto_cflags %nil
Name: mesa
Summary: Mesa graphics libraries
%global ver 25.2.5
@ -504,11 +509,6 @@ rewrite_wrap_file paste
rewrite_wrap_file rustc-hash
%endif
# We've gotten a report that enabling LTO for mesa breaks some games. See
# https://bugzilla.redhat.com/show_bug.cgi?id=1862771 for details.
# Disable LTO for now
%define _lto_cflags %{nil}
%meson \
-Dplatforms=x11,wayland \
%if 0%{?with_hardware}