From 09d366f147a81acb8458e0b82316694d1a29ebe6 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 14 Nov 2025 12:28:41 +0000 Subject: [PATCH] mesa: don't enable link-time optimisation LTO breaks mesa and is explicitly not tested in their CI, so we should ensure it is disabled. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/recipes-graphics/mesa/mesa.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index e0ec17bd47b..3124db09864 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc @@ -348,3 +348,7 @@ INSANE_SKIP:libopencl-mesa += "dev-so" RREPLACES:mesa-megadriver = "mesa" RCONFLICTS:mesa-megadriver = "mesa" RPROVIDES:mesa-megadriver = "mesa" + +# As of May 2025 it is known that LTO breaks Mesa, for example: +# https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34318 +LTO = "" -- 2.47.3