samba4: add dependency on BR2_TOOLCHAIN_HAS_SYNC_4
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 6 Feb 2016 22:53:05 +0000 (23:53 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 6 Feb 2016 22:53:05 +0000 (23:53 +0100)
samba4 uses the __sync_fetch_and_add_4() atomic built-in, so it should
depend on BR2_TOOLCHAIN_HAS_SYNC_4 in order to avoid build failures on
architectures not providing this atomic built-in.

Fixes:

  http://autobuild.buildroot.org/results/0d0fd9d2a132a40a840bea5df59c35d8573ebf45/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/kodi/Config.in
package/mpd/Config.in
package/samba4/Config.in

index a657f5baf13374ef6fe9abd44ab5933b4501ddb3..7d288820268ddeff808def570e9e5f4bd4fb8076 100644 (file)
@@ -215,6 +215,7 @@ config BR2_PACKAGE_KODI_LIBSMBCLIENT
        bool "samba"
        depends on BR2_TOOLCHAIN_USES_GLIBC
        depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        select BR2_PACKAGE_SAMBA4
        help
          Enable Samba support
index a7da01f6217050db1d6c3a7e37fd878f3163b223..b3683974874595bb525af2cfbdac5894d0b9f869 100644 (file)
@@ -200,6 +200,7 @@ config BR2_PACKAGE_MPD_LIBSMBCLIENT
        depends on BR2_TOOLCHAIN_USES_GLIBC
        depends on !BR2_STATIC_LIBS
        depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        select BR2_PACKAGE_SAMBA4
        help
          Enable Samba support.
index c53adba98edfe0de0dbbbe6df21b4d9855da2aaa..2503785227b916aa70772e7dfd2d2f40562ff32e 100644 (file)
@@ -1,4 +1,5 @@
 comment "samba4 needs a toolchain w/ RPC, wchar, dynamic library, threads"
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_NATIVE_RPC \
                || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU
@@ -12,6 +13,7 @@ config BR2_PACKAGE_SAMBA4
        depends on BR2_TOOLCHAIN_HAS_THREADS # python -> libffi
        depends on !BR2_STATIC_LIBS # python
        depends on !BR2_nios2 # binary too large, relocations don't fit
+       depends on BR2_TOOLCHAIN_HAS_SYNC_4
        select BR2_PACKAGE_E2FSPROGS
        select BR2_PACKAGE_POPT
        select BR2_PACKAGE_PYTHON