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

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jan 2 20:45:20 UTC 2018


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 ?

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list