comparison auto/cc/msvc @ 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 ce98b460606e
children 78f8ac479735
comparison
equal deleted inserted replaced
6382:392959224560 6383:85dea406e18f
116 NGX_RES="$NGX_OBJS/nginx.res" 116 NGX_RES="$NGX_OBJS/nginx.res"
117 NGX_RCC="rc -fo$NGX_RES \$(CORE_INCS) $NGX_WIN32_RC" 117 NGX_RCC="rc -fo$NGX_RES \$(CORE_INCS) $NGX_WIN32_RC"
118 CORE_LINK="$NGX_RES $CORE_LINK" 118 CORE_LINK="$NGX_RES $CORE_LINK"
119 119
120 120
121 # dynamic modules
122 #MAIN_LINK="-link -def:$NGX_OBJS/nginx.def"
123 #MODULE_LINK="-LD $NGX_OBJS/nginx.lib"
124
125
126 ngx_pic_opt=
121 ngx_objout="-Fo" 127 ngx_objout="-Fo"
122 ngx_binout="-Fe" 128 ngx_binout="-Fe"
123 ngx_objext="obj" 129 ngx_objext="obj"
124 ngx_binext=".exe" 130 ngx_binext=".exe"
125 131