From 08b57aa38a665e7a4b88c709246cada7b4a28711 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 28 Jun 2018 12:53:13 +0300 Subject: added slightly edited mesa from x11 repo --- .../mesa/files/mesa-add-NDEBUG-without-rtti.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch (limited to 'packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch') diff --git a/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch b/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch new file mode 100644 index 0000000..47403cf --- /dev/null +++ b/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch @@ -0,0 +1,21 @@ +Author: Rasmus Thomsen +Reason: Mesa's meson build system doesn't pass +NDEBUG to the cppargs when building with LLVM +without RTTI support enabled. This causes the +build to fail because some parts of debugging +need RTTI support. +Upstream: Created bug for it, https://bugs.freedesktop.org/show_bug.cgi?id=106391 +diff --git a/meson.build b/meson.build +index 6e61766809..269b5bd3b9 100644 +--- a/meson.build ++++ b/meson.build +@@ -1150,6 +1150,9 @@ if with_llvm + # ensure that linking works. + if dep_llvm.get_configtool_variable('has-rtti') == 'NO' + cpp_args += '-fno-rtti' ++ pre_args += [ ++ '-DNDEBUG', ++ ] + endif + elif with_amd_vk or with_gallium_radeonsi or with_gallium_swr + error('The following drivers require LLVM: Radv, RadeonSI, SWR. One of these is enabled, but LLVM is disabled.') -- cgit v1.2.3