Mercurial > hg > nginx
comparison auto/init @ 6383:85dea406e18f
Dynamic modules.
The auto/module script is extended to understand ngx_module_link=DYNAMIC.
When set, it links the module as a shared object rather than statically
into nginx binary. The module can later be loaded using the "load_module"
directive.
New auto/module parameter ngx_module_order allows to define module loading
order in complex cases. By default the order is set based on ngx_module_type.
3rd party modules can be compiled dynamically using the --add-dynamic-module
configure option, which will preset ngx_module_link to "DYNAMIC" before
calling the module config script.
Win32 support is rudimentary, and only works when using MinGW gcc (which
is able to handle exports/imports automatically).
In collaboration with Ruslan Ermilov.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 04 Feb 2016 20:25:29 +0300 |
parents | d620f497c50f |
children | 05c894a598ea |
comparison
equal
deleted
inserted
replaced
6382:392959224560 | 6383:85dea406e18f |
---|---|
3 # Copyright (C) Nginx, Inc. | 3 # Copyright (C) Nginx, Inc. |
4 | 4 |
5 | 5 |
6 NGX_MAKEFILE=$NGX_OBJS/Makefile | 6 NGX_MAKEFILE=$NGX_OBJS/Makefile |
7 NGX_MODULES_C=$NGX_OBJS/ngx_modules.c | 7 NGX_MODULES_C=$NGX_OBJS/ngx_modules.c |
8 NGX_MODULES= | |
8 | 9 |
9 NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h | 10 NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h |
10 NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h | 11 NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h |
11 | 12 |
12 NGX_AUTOTEST=$NGX_OBJS/autotest | 13 NGX_AUTOTEST=$NGX_OBJS/autotest |