diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2023-05-10 22:36:53 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2023-05-10 22:36:53 -0700 |
commit | cd1ac80f692d62dc87d08458a985f4502caec934 (patch) | |
tree | 790d2bb4b13827167de56c4d946acaeeba37c283 /nginx/ngx_js.c | |
parent | eca430c94fc87804523f368a86350646328490cb (diff) | |
download | njs-cd1ac80f692d62dc87d08458a985f4502caec934.tar.gz njs-cd1ac80f692d62dc87d08458a985f4502caec934.zip |
Modules: added options to disable parts dependant on 3rd party libs.
The following environment variables are added: NJS_OPENSSL, NJS_LIBXSLT,
NJS_ZLIB. When a variable evaluates to "NO" the part of the module
related to the corresponsing library is disabled.
For example to disable libxslt related code:
NJS_LIBXSLT=NO ./configure .. --add-module=/path/to/njs/module
Diffstat (limited to 'nginx/ngx_js.c')
-rw-r--r-- | nginx/ngx_js.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nginx/ngx_js.c b/nginx/ngx_js.c index 2b5be2ce..ed3ea5c2 100644 --- a/nginx/ngx_js.c +++ b/nginx/ngx_js.c @@ -88,9 +88,15 @@ static njs_external_t ngx_js_ext_core[] = { njs_module_t *njs_js_addon_modules[] = { +#ifdef NJS_HAVE_OPENSSL &njs_webcrypto_module, +#endif +#ifdef NJS_HAVE_XML &njs_xml_module, +#endif +#ifdef NJS_HAVE_ZLIB &njs_zlib_module, +#endif NULL, }; |