package/libmodsecurity: needs threads
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 2 Feb 2020 21:37:34 +0000 (22:37 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 3 Feb 2020 13:06:35 +0000 (14:06 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/78391abbf87ac9c04b13d7aab7acf7d1aaade75d

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libmodsecurity/Config.in
package/nginx-modsecurity/Config.in

index 129881b0de990d1be2337ddeb4d49e9bcff909e5..ea58c6d0e2c7111a5f9372eca0b5ef6191aa8eae 100644 (file)
@@ -2,6 +2,7 @@ config BR2_PACKAGE_LIBMODSECURITY
        bool "libmodsecurity"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on !BR2_STATIC_LIBS
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        select BR2_PACKAGE_PCRE
        help
          Libmodsecurity is one component of the ModSecurity
@@ -15,5 +16,6 @@ config BR2_PACKAGE_LIBMODSECURITY
 
          https://github.com/SpiderLabs/ModSecurity
 
-comment "libmodsecurity needs a toolchain w/ C++, dynamic library"
-       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+comment "libmodsecurity needs a toolchain w/ C++, dynamic library, threads"
+       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+               !BR2_TOOLCHAIN_HAS_THREADS
index aa9d53a3fedb8156a4ce435df96a259087ac5ae3..2af11eeee2a42ad7b59e9a298f1d53ee053c55c0 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY
        depends on BR2_PACKAGE_NGINX_HTTP
        depends on BR2_INSTALL_LIBSTDCPP # libmodsecurity
        depends on !BR2_STATIC_LIBS # libmodsecurity
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libmodsecurity
        select BR2_PACKAGE_PCRE # libmodsecurity
        select BR2_PACKAGE_LIBMODSECURITY
        help
@@ -12,6 +13,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY
 
          https://github.com/SpiderLabs/ModSecurity-nginx
 
-comment "nginx-modsecurity needs a toolchain w/ C++, dynamic library"
+comment "nginx-modsecurity needs a toolchain w/ C++, dynamic library, threads"
        depends on BR2_PACKAGE_NGINX_HTTP
-       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS
+       depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+               !BR2_TOOLCHAIN_HAS_THREADS