From e7344b6d973d83a0e11c972da56616f11128e8c9 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sun, 5 Feb 2023 20:33:19 +0100 Subject: [PATCH] Ensure standard Rust compiler flags are set --- mesa.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesa.spec b/mesa.spec index 93b136f..d8a1f6d 100644 --- a/mesa.spec +++ b/mesa.spec @@ -332,6 +332,9 @@ The drivers with support for the Vulkan API. cp %{SOURCE1} docs/ %build +# ensure standard Rust compiler flags are set +export RUSTFLAGS="%build_rustflags" + # 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