Skip to content

Commit 39cbcc0

Browse files
juliyvchirkovxfeep
authored andcommitted
Makes the module compatible with --add-dynamic-module option
Makes the module compatible with ``--add-dynamic-module`` option
1 parent eb19817 commit 39cbcc0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/c/config

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

0 commit comments

Comments
 (0)