Disable LTO globally

Resolves: https://issues.redhat.com/browse/RHEL-128255
This commit is contained in:
José Expósito 2025-11-18 10:15:45 +01:00
parent b9021983bf
commit eb81bc731b

View File

@ -73,11 +73,16 @@
%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
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 1%{?dist}
Release: 2%{?dist}
License: MIT AND BSD-3-Clause AND SGI-B-2.0
URL: http://www.mesa3d.org
@ -526,11 +531,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}
@ -879,6 +879,10 @@ popd
%endif
%changelog
* Tue Nov 18 2025 Mika Penttilä José Expósito <jexposit@redhat.com> - 25.2.5-2
- Disable LTO globally
Resolves: https://issues.redhat.com/browse/RHEL-128255
* Wed Nov 5 2025 Mika Penttilä <mpenttila@redhat.com - 25.2.5
- Resolves: https://issues.redhat.com/browse/RHEL-107477
Enable NVK also for RHEL 9