]> git.pld-linux.org Git - packages/Mesa.git/blame - gcc10.patch
fix omx st build with gcc 10; rel 2
[packages/Mesa.git] / gcc10.patch
CommitLineData
1afde4c0
JP
1From 283e815339a15fa99039c69f1e225269790ae955 Mon Sep 17 00:00:00 2001
2From: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
3Date: Thu, 5 Mar 2020 09:37:58 +0100
4Subject: [PATCH 1/2] omx: fix build with gcc 10
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9bellagio/omx header files reference a global variable without the
10extern keyworkd.
11Now that gcc-10 enables the '-fno-common' by default the build fails.
12Since these are external headers we can't easily fix them, so for
13now build the omx module with the '-fcommon' flag to keep the
14previous behavior.
15
16See https://gitlab.freedesktop.org/mesa/mesa/issues/2385
17
18Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
19Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4058>
20---
21 src/gallium/state_trackers/omx/meson.build | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24diff --git a/src/gallium/state_trackers/omx/meson.build b/src/gallium/state_trackers/omx/meson.build
25index 3aa82090c91..987d3e23c84 100644
26--- a/src/gallium/state_trackers/omx/meson.build
27+++ b/src/gallium/state_trackers/omx/meson.build
28@@ -65,7 +65,7 @@ endif
29 libomx_st = static_library(
30 'omx_st',
31 files_omx,
32- c_args : [c_vis_args],
33+ c_args : [c_vis_args, '-fcommon'],
34 include_directories : inc_st_omx,
35 dependencies : dep_st_omx,
36 )
37--
382.26.2
39
40
41From 33b255e107b470b8d2ea5bd96d82c613244aaf47 Mon Sep 17 00:00:00 2001
42From: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
43Date: Thu, 5 Mar 2020 11:00:28 +0100
44Subject: [PATCH 2/2] meson: enable -fno-common by default
45MIME-Version: 1.0
46Content-Type: text/plain; charset=UTF-8
47Content-Transfer-Encoding: 8bit
48
49This flag is enabled by default starting with gcc 10.
50All the compilation issues have been fixed, so use it by default
51to make sure we're not introducing regressions.
52
53Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
54Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4058>
55Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4058>
56---
57 meson.build | 1 +
58 1 file changed, 1 insertion(+)
59
60diff --git a/meson.build b/meson.build
61index 1484e7fec5d..bf306605645 100644
62--- a/meson.build
63+++ b/meson.build
64@@ -958,6 +958,7 @@ else
65 '-fno-math-errno',
66 '-fno-trapping-math',
67 '-Qunused-arguments',
68+ '-fno-common',
69 ]
70 # MinGW chokes on format specifiers and I can't get it all working
71 if not (cc.get_id() == 'gcc' and host_machine.system() == 'windows')
72--
732.26.2
74
This page took 0.033417 seconds and 4 git commands to generate.