From bd392f431cc481ea754581d3052959bb7454ca5b Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Wed, 26 Feb 2020 17:12:18 +0100 Subject: [PATCH] Fix the build with llvm 10 Make sure the build uses gnu++14 as llvm 10 headers require that. https://bugzilla.redhat.com/show_bug.cgi?id=1803351 --- mesa.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mesa.spec b/mesa.spec index f96db83..33555f9 100644 --- a/mesa.spec +++ b/mesa.spec @@ -52,7 +52,7 @@ Name: mesa Summary: Mesa graphics libraries %global ver 20.0.0 Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)} -Release: 1%{?dist} +Release: 2%{?dist} License: MIT URL: http://www.mesa3d.org @@ -326,6 +326,9 @@ Headers for development with the Vulkan API. %autosetup -n %{name}-%{ver} -p1 cp %{SOURCE1} docs/ +# Make sure the build uses gnu++14 as llvm 10 headers require that +sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build + %build # Build with -fcommon until the omx build with gcc10 is fixed upstream @@ -589,6 +592,9 @@ popd %endif %changelog +* Wed Feb 26 2020 Kalev Lember - 20.0.0-2 +- Fix the build with llvm 10 (#1803351) + * Thu Feb 20 2020 Pete Walter - 20.0.0-1 - Update to 20.0.0