From: Bernd Kuhls Date: Sat, 15 Apr 2017 10:22:36 +0000 (+0200) Subject: package/ffmpeg: use BR2_TOOLCHAIN_HAS_LIBATOMIC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc8798197b57488a852e2c14b4677b5eb0114a0b;p=buildroot.git 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 --- 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