]> git.kaiwu.me - nginx.git/commit
Dynamic modules.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 4 Feb 2016 17:25:29 +0000 (20:25 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 4 Feb 2016 17:25:29 +0000 (20:25 +0300)
commit97f59dda09f139fbf18d6a20097d3337a2489b3c
tree14bdb60c3fbb499c15dcd21267d847af4c8f4b5b
parent0805ba14e7a25bc61627d6ece2a79243fe0b640a
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.
21 files changed:
auto/cc/conf
auto/cc/msvc
auto/cc/sunc
auto/init
auto/install
auto/lib/conf
auto/lib/geoip/conf
auto/lib/libgd/conf
auto/lib/libxslt/conf
auto/make
auto/module
auto/modules
auto/options
auto/os/darwin
auto/os/win32
auto/summary
src/core/nginx.c
src/core/ngx_cycle.c
src/core/ngx_cycle.h
src/core/ngx_module.c
src/core/ngx_module.h