package/libiio: libiio network backend needs threads
authorRomain Naour <romain.naour@gmail.com>
Sat, 2 Jul 2016 11:07:15 +0000 (13:07 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 2 Jul 2016 13:27:32 +0000 (15:27 +0200)
When libiio network backend is enabled, NEED_THREADS is set in the
build system and require a toolchain with treads support.

Fixes:
http://autobuild.buildroot.net/results/cfc/cfc70094d8f4008f4e660250b1b90a35a2ab384d

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libiio/Config.in

index 99da4c1c10007297ab80ae43870a4559ad06b7f2..28a43f9fa8b052d62b1c94d133aa5d31ab1c52f2 100644 (file)
@@ -17,11 +17,15 @@ config BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
 
 config BR2_PACKAGE_LIBIIO_NETWORK_BACKEND
        bool "Network backend"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        select BR2_PACKAGE_LIBXML2
        default y
        help
          Enable the network backend of the library.
 
+comment "IIO Network backend needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 config BR2_PACKAGE_LIBIIO_IIOD
        bool "IIO Daemon"
        select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND