Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
endif #BR2_PACKAGE_NGINX_STREAM
+config BR2_PACKAGE_NGINX_DEBUG
+ bool "debug logging"
+ help
+ Enable debug logging. The debug level should be set with
+ the error_log directive. For example
+
+ error_log /var/log/nginx/error.log debug;
+
comment "misc. modules"
config BR2_PACKAGE_NGINX_SELECT_MODULE
endif # BR2_PACKAGE_NGINX_STREAM
+# Debug logging
+NGINX_CONF_OPTS += $(if $(BR2_PACKAGE_NGINX_DEBUG),--with-debug)
+
define NGINX_DISABLE_WERROR
$(SED) 's/-Werror//g' -i $(@D)/auto/cc/*
endef