omx: fix build with gcc 10
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 5 Mar 2020 08:37:58 +0000 (09:37 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 9 Mar 2020 08:11:00 +0000 (09:11 +0100)
commit283e815339a15fa99039c69f1e225269790ae955
treebcf9257f808249c8c17bbc9cc2cd820d1940b652
parente924181ea89e5e261f8aa24564c32ed22941e752
omx: fix build with gcc 10

bellagio/omx header files reference a global variable without the
extern keyworkd.
Now that gcc-10 enables the '-fno-common' by default the build fails.
Since these are external headers we can't easily fix them, so for
now build the omx module with the '-fcommon' flag to keep the
previous behavior.

See https://gitlab.freedesktop.org/mesa/mesa/issues/2385

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4058>
src/gallium/state_trackers/omx/meson.build