Skip to content

Commit 61288fc

Browse files
committed
feature: this module can now be built as a "dynamic module" with NGINX 1.9.11+ via the --add-dynamic-module=PATH option of ./configure. thanks Hiroaki Nakamura for the original patch in #22.
1 parent 3101c7f commit 61288fc

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

config

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
ngx_addon_name=ngx_http_lua_upstream_module
2-
HTTP_MODULES="$HTTP_MODULES ngx_http_lua_upstream_module"
3-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_lua_upstream_module.c"
2+
HTTP_LUA_UPSTREAM_SRCS="$ngx_addon_dir/src/ngx_http_lua_upstream_module.c"
3+
4+
if test -n "$ngx_module_link"; then
5+
ngx_module_type=HTTP
6+
ngx_module_name=$ngx_addon_name
7+
ngx_module_srcs="$HTTP_LUA_UPSTREAM_SRCS"
8+
9+
. auto/module
10+
else
11+
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
12+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_LUA_UPSTREAM_SRCS"
13+
14+
CORE_INCS="$CORE_INCS $ngx_module_incs"
15+
CORE_LIBS="$CORE_LIBS $ngx_module_libs"
16+
fi

0 commit comments

Comments
 (0)