[njs] Style: express requirement to use PCRE via $ngx_module_libs.

Ruslan Ermilov ru at nginx.com
Thu Sep 15 07:52:15 UTC 2016


details:   http://hg.nginx.org/njs/rev/1745fcf4a5cc
branches:  
changeset: 173:1745fcf4a5cc
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Sep 15 10:52:01 2016 +0300
description:
Style: express requirement to use PCRE via $ngx_module_libs.

diffstat:

 nginx/config |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r efd2f95aaeb4 -r 1745fcf4a5cc nginx/config
--- a/nginx/config	Tue Sep 13 16:59:27 2016 +0300
+++ b/nginx/config	Thu Sep 15 10:52:01 2016 +0300
@@ -1,13 +1,11 @@
 ngx_addon_name="ngx_js_module"
 
-USE_PCRE=YES
-
 if test -n "$ngx_module_link"; then
     ngx_module_type=HTTP
     ngx_module_name=ngx_http_js_module
     ngx_module_incs="$ngx_addon_dir/../nxt $ngx_addon_dir/../njs"
     ngx_module_srcs="$ngx_addon_dir/ngx_http_js_module.c"
-    ngx_module_libs="$ngx_addon_dir/../build/libnjs.a -lm"
+    ngx_module_libs="PCRE $ngx_addon_dir/../build/libnjs.a -lm"
 
     . auto/module
 
@@ -15,10 +13,12 @@ if test -n "$ngx_module_link"; then
     ngx_module_name=ngx_stream_js_module
     ngx_module_incs="$ngx_addon_dir/../nxt $ngx_addon_dir/../njs"
     ngx_module_srcs="$ngx_addon_dir/ngx_stream_js_module.c"
-    ngx_module_libs="$ngx_addon_dir/../build/libnjs.a -lm"
+    ngx_module_libs="PCRE $ngx_addon_dir/../build/libnjs.a -lm"
 
     . auto/module
 else
+    USE_PCRE=YES
+
     HTTP_MODULES="$HTTP_MODULES ngx_http_js_module"
     STREAM_MODULES="$STREAM_MODULES ngx_stream_js_module"
     CORE_INCS="$CORE_INCS $ngx_addon_dir/../nxt $ngx_addon_dir/../njs"



More information about the nginx-devel mailing list