Mercurial > hg > nginx
comparison auto/cc/sunc @ 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 | 434548349838 |
children | 9eefb38f0005 |
comparison
equal
deleted
inserted
replaced
6382:392959224560 | 6383:85dea406e18f |
---|---|
54 sun4u | sun4v) | 54 sun4u | sun4v) |
55 NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il" | 55 NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il" |
56 ;; | 56 ;; |
57 | 57 |
58 esac | 58 esac |
59 | |
60 MAIN_LINK= | |
61 MODULE_LINK="-G" | |
59 | 62 |
60 | 63 |
61 # optimizations | 64 # optimizations |
62 | 65 |
63 # 20736 == 0x5100, Sun Studio 12.1 | 66 # 20736 == 0x5100, Sun Studio 12.1 |