[Buildroot] [PATCH v2] libdrm: fix libatomic_ops linking

Peter Seiderer ps.report at gmx.net
Tue Feb 6 21:23:57 UTC 2018


Hello Thomas,

On Tue, 2 Jan 2018 21:45:20 +0100, Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:

> Hello,
> 
> On Mon, 18 Dec 2017 19:55:31 +0100, Peter Seiderer wrote:
> > Add patch 0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch
> > provided by Thomas Petazzoni handling libatomic_ops linking when needed.
> > 
> > Fixes [1]:
> > 
> >     CCLD     etnaviv_cmd_stream_test
> >   ../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `AO_store_full_emulation'
> >   ../../etnaviv/.libs/libdrm_etnaviv.so: undefined reference to `AO_fetch_compare_and_swap_emulation'
> >   collect2: error: ld returned 1 exit status
> > 
> > [1] http://autobuild.buildroot.net/results/92e074c49417261843eef95872ff935a56077c98
> > 
> > Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> > ---
> > Changes v1 -> v2:
> >   - use patch provided by Thomas Petazzoni instead of forced
> >     libatomic_ops linking.
> > ---
> >  ...akefile.am-use-pkg-config-to-discover-lib.patch | 160 +++++++++++++++++++++
> >  package/libdrm/libdrm.mk                           |   8 +-
> >  2 files changed, 167 insertions(+), 1 deletion(-)
> >  create mode 100644 package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch  
> 
> Applied to master, thanks. Could you submit the patch upstream to the
> libdrm project ?

Patch finally submitted upstream, see [2]...

Regards,
Peter

[2] https://lists.freedesktop.org/archives/dri-devel/2018-February/164908.html

> 
> Thanks a lot!
> 
> Thomas



More information about the buildroot mailing list