shadowsocks-libev: add dependency on thread support
authorMin Xu <xuminready@gmail.com>
Mon, 11 Jun 2018 18:18:22 +0000 (11:18 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Jun 2018 13:41:51 +0000 (15:41 +0200)
shadowsocks-libev needs thread support, otherwise the configure script
fails with:

configure: error: Can not find pthreads.  This is required.

Signed-off-by: Min Xu <xuminready@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/shadowsocks-libev/Config.in

index d02e5a93efc3afdef2f9d8757a1da296ee699bba..56914e8e9dd47323cb2ed7a7a6cf596297feb7f2 100644 (file)
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_SHADOWSOCKS_LIBEV
        bool "shadowsocks-libev"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU # fork()
        select BR2_PACKAGE_C_ARES
        select BR2_PACKAGE_LIBEV
@@ -11,3 +12,7 @@ config BR2_PACKAGE_SHADOWSOCKS_LIBEV
          embedded devices and low-end boxes.
 
          https://github.com/shadowsocks/shadowsocks-libev
+
+comment "shadowsocks-libev needs a toolchain w/ threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_TOOLCHAIN_HAS_THREADS