libdrm: fix libatomic_ops linking
authorPeter Seiderer <ps.report@gmx.net>
Mon, 18 Dec 2017 18:55:31 +0000 (19:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 2 Jan 2018 19:55:15 +0000 (20:55 +0100)
commitfa6c7d165971e1f70b9ac94bae9cd1fd9180c072
treeb5dfe0864f6d34a0a3cdfe1bb9e761639d76ab70
parent55d79ed93e44e1876334f795c6313ea6f406d229
libdrm: fix libatomic_ops linking

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@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libdrm/0003-configure-Makefile.am-use-pkg-config-to-discover-lib.patch [new file with mode: 0644]
package/libdrm/libdrm.mk