From 71cb0f0f722875100cd18df9484a7a30f53bfbeb Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sat, 15 Aug 2020 23:57:30 +0200 Subject: [PATCH] package/mpv: link with libatomic if needed Fixes: - http://autobuild.buildroot.org/results/12f4580429427b6b546184366f74da16f83d692c Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/mpv/mpv.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk index 8619de5a8e..6801a0468f 100644 --- a/package/mpv/mpv.mk +++ b/package/mpv/mpv.mk @@ -235,4 +235,8 @@ else MPV_CONF_OPTS += --disable-x11 endif +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +MPV_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic" +endif + $(eval $(waf-package)) -- 2.30.2