]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/nginx: add thread pool support
authorMartin Bark <martin@barkynet.com>
Tue, 3 May 2016 09:36:56 +0000 (10:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 5 May 2016 20:30:06 +0000 (22:30 +0200)
Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nginx/Config.in
package/nginx/nginx.mk

index f925cc75bc0a68f462ed9aa0a7f3022d8ea0ae3e..ca3e3eb4b09ae0ca5ed0ee675d0cf978801ef1a7 100644 (file)
@@ -18,6 +18,13 @@ config BR2_PACKAGE_NGINX_FILE_AIO
        depends on !BR2_aarch64
        depends on !BR2_arc
 
+config BR2_PACKAGE_NGINX_THREADS
+       bool "thread pool support"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+
+comment "thread pool support needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
+
 config BR2_PACKAGE_NGINX_HTTP
        bool "http server"
        default y
index 7f3b075a733531ae439582ff933fd9f6233ab311..91772b351b207445739e22b2bf29538ac38cf949 100644 (file)
@@ -64,7 +64,8 @@ NGINX_CONF_OPTS += \
        --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi
 
 NGINX_CONF_OPTS += \
-       $(if $(BR2_PACKAGE_NGINX_FILE_AIO),--with-file-aio)
+       $(if $(BR2_PACKAGE_NGINX_FILE_AIO),--with-file-aio) \
+       $(if $(BR2_PACKAGE_NGINX_THREADS),--with-threads)
 
 ifeq ($(BR2_PACKAGE_PCRE),y)
 NGINX_DEPENDENCIES += pcre