summaryrefslogtreecommitdiffstats
path: root/package/vlc
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-10-16 23:01:27 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-10-19 23:40:56 +0200
commit03f6e005e6a9617767b24a9026da9477848020cc (patch)
tree4a27f85dbfd4d6b53dc83860bd65162e72dd19bc /package/vlc
parent70dbd3227db8b6856cc95b3afbecd36e9a1847a6 (diff)
downloadbuildroot-03f6e005e6a9617767b24a9026da9477848020cc.tar.gz
buildroot-03f6e005e6a9617767b24a9026da9477848020cc.zip
package/vlc: use BR2_TOOLCHAIN_HAS_LIBATOMIC
While fixing http://autobuild.buildroot.net/results/d95/d9572bcafc1776eebe88bbcaf031a05cd6ee4b23/ by using http://patchwork.ozlabs.org/patch/674337/ the build stopped at a later stage with /home/buildroot/br4/output/build/vlc-2.2.4/src/.libs/libvlccore.so: undefined reference to `__atomic_fetch_add_4' /home/buildroot/br4/output/build/vlc-2.2.4/src/.libs/libvlccore.so: undefined reference to `__atomic_fetch_sub_4' /home/buildroot/br4/output/build/vlc-2.2.4/src/.libs/libvlccore.so: undefined reference to `__atomic_fetch_or_1' /home/buildroot/br4/output/build/vlc-2.2.4/src/.libs/libvlccore.so: undefined reference to `__atomic_compare_exchange_4' /home/buildroot/br4/output/build/vlc-2.2.4/src/.libs/libvlccore.so: undefined reference to `__atomic_exchange_1' collect2: error: ld returned 1 exit status so libatomic must be pulled in if necessary. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/vlc')
-rw-r--r--package/vlc/vlc.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/vlc/vlc.mk b/package/vlc/vlc.mk
index 8efbecb74e..cf0b557bb1 100644
--- a/package/vlc/vlc.mk
+++ b/package/vlc/vlc.mk
@@ -56,6 +56,11 @@ VLC_CONF_OPTS += \
--disable-addonmanagermodules \
--enable-run-as-root \
+# Uses __atomic_fetch_add_4
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+VLC_CONF_ENV += LIBS="-latomic"
+endif
+
# Building static and shared doesn't work, so force static off.
ifeq ($(BR2_STATIC_LIBS),)
VLC_CONF_OPTS += --disable-static
OpenPOWER on IntegriCloud