diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-02 16:31:26 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-02-06 11:16:00 +0100 |
commit | 9a6a13469c409cdcc059c2176e8de25a70f074fa (patch) | |
tree | 847a533b57b05c1427b8ad7252178f0ceeb04826 /package/libtorrent | |
parent | 7f4597d94e64c0ff8dc2acf6f5bfabecd272bf02 (diff) |
libtorrent: use the proper BR2_TOOLCHAIN_HAS_SYNC_x symbols
libtorrent uses 1 bytes and 4 bytes __sync built-ins, so let's use the
appropriate BR2_TOOLCHAIN_HAS_SYNC_x symbols instead of
BR2_ARCH_HAS_ATOMICS. The rtorrent package, which is a reverse
dependency of libtorrent, gets fixed as well.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[yann.morin.1998@free.fr: build-tested on an ARC toolchain without
atomics, with CPU 770D]
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'package/libtorrent')
-rw-r--r-- | package/libtorrent/Config.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/libtorrent/Config.in b/package/libtorrent/Config.in index 17a1f232e..4787f9c60 100644 --- a/package/libtorrent/Config.in +++ b/package/libtorrent/Config.in @@ -2,7 +2,7 @@ config BR2_PACKAGE_LIBTORRENT bool "libtorrent" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS - depends on BR2_ARCH_HAS_ATOMICS + depends on BR2_TOOLCHAIN_HAS_SYNC_1 && BR2_TOOLCHAIN_HAS_SYNC_4 select BR2_PACKAGE_ZLIB help BitTorrent library written in C++ for *nix @@ -10,5 +10,5 @@ config BR2_PACKAGE_LIBTORRENT https://github.com/rakshasa/libtorrent comment "libtorrent needs a toolchain w/ C++, threads" - depends on BR2_ARCH_HAS_ATOMICS + depends on BR2_TOOLCHAIN_HAS_SYNC_1 && BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS |