package/ffmpeg: use BR2_TOOLCHAIN_HAS_LIBATOMIC
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 15 Apr 2017 10:22:36 +0000 (12:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 16 Apr 2017 08:35:11 +0000 (10:35 +0200)
Fixes
http://autobuild.buildroot.net/results/69d/69d33792f2e7ec62bfe593eb4bbc8fb2652d7011/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ffmpeg/ffmpeg.mk

index adc0f5d4241f3aee7de8edc9697997576b9b7d6c..10e4e74d7a629d6b769c45138007e737b6109cbb 100644 (file)
@@ -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