diff --git a/u_fno-common.patch b/u_fno-common.patch new file mode 100644 index 0000000..f351131 --- /dev/null +++ b/u_fno-common.patch @@ -0,0 +1,11 @@ +--- xf86-video-amdgpu-19.1.0.old/src/drmmode_display.h 2020-01-09 23:36:44.871438889 +0000 ++++ xf86-video-amdgpu-19.1.0/src/drmmode_display.h 2020-01-09 23:37:15.904031508 +0000 +@@ -289,7 +289,7 @@ + uint64_t *ust, uint32_t *result_seq); + + +-miPointerSpriteFuncRec drmmode_sprite_funcs; ++extern miPointerSpriteFuncRec drmmode_sprite_funcs; + + + #endif diff --git a/xf86-video-amdgpu.changes b/xf86-video-amdgpu.changes index 3c39f54..0716d1f 100644 --- a/xf86-video-amdgpu.changes +++ b/xf86-video-amdgpu.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 9 23:39:11 UTC 2020 - Stefan Dirsch + +- u_fno-common.patch + * fix build with gcc's -fno-common option (boo#1160421) + ------------------------------------------------------------------- Sat Oct 12 13:39:40 UTC 2019 - Stefan Dirsch diff --git a/xf86-video-amdgpu.spec b/xf86-video-amdgpu.spec index 36d9514..0fac61f 100644 --- a/xf86-video-amdgpu.spec +++ b/xf86-video-amdgpu.spec @@ -1,7 +1,7 @@ # # spec file for package xf86-video-amdgpu # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,6 +31,7 @@ Source: http://xorg.freedesktop.org/releases/individual/driver/%{name}-% Source1: http://xorg.freedesktop.org/releases/individual/driver/%{name}-%{version}.tar.bz2.sig Source2: %{name}.keyring Source3: amdgpu.ids +Patch0: u_fno-common.patch BuildRequires: autoconf >= 2.6.0 BuildRequires: automake BuildRequires: libtool @@ -64,6 +65,7 @@ Its autodetects whether your hardware has a CI or newer AMD Graphics Card %prep %setup -q +%patch0 -p1 %build autoreconf -fiv