From fc8798197b57488a852e2c14b4677b5eb0114a0b Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 15 Apr 2017 12:22:36 +0200 Subject: [PATCH] package/ffmpeg: use BR2_TOOLCHAIN_HAS_LIBATOMIC Fixes http://autobuild.buildroot.net/results/69d/69d33792f2e7ec62bfe593eb4bbc8fb2652d7011/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/ffmpeg/ffmpeg.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk index adc0f5d424..10e4e74d7a 100644 --- a/package/ffmpeg/ffmpeg.mk +++ b/package/ffmpeg/ffmpeg.mk @@ -452,6 +452,11 @@ else FFMPEG_CONF_OPTS += --disable-altivec endif +# Uses __atomic_fetch_add_4 +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +FFMPEG_CONF_OPTS += --extra-libs=-latomic +endif + ifeq ($(BR2_STATIC_LIBS),) FFMPEG_CONF_OPTS += --enable-pic else -- 2.30.2