Skip to content

Commit a92aa7a

Browse files
committed
add dynamic module capability
nginx-upstream-fair can now be compiled as a dynamic module gnosek#21
1 parent 3df8e6b commit a92aa7a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

config

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
ngx_addon_name=ngx_http_upstream_fair_module
2-
HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_fair_module"
3-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upstream_fair_module.c"
2+
3+
if test -n "$ngx_module_link"; then
4+
ngx_module_type=HTTP
5+
ngx_module_name=ngx_http_upstream_fair_module
6+
ngx_module_srcs="$ngx_addon_dir/ngx_http_upstream_fair_module.c"
7+
8+
. auto/module
9+
else
10+
HTTP_MODULES="$HTTP_MODULES ngx_http_upstream_fair_module"
11+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upstream_fair_module.c"
12+
fi

0 commit comments

Comments
 (0)