Skip to content

Commit 66eb0e1

Browse files
Support a dynamic module with nginx
feature: this module can now be built as a "dynamic module" via the --add-dynamic-module=PATH option of ./configure.
1 parent 48f1c8a commit 66eb0e1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

config

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,14 @@ USE_MD5=YES
22
USE_SHA1=YES
33
USE_OPENSSL=YES
44
ngx_addon_name=ngx_http_upload_module
5-
HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
6-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"
5+
6+
if test -n "$ngx_module_link"; then
7+
ngx_module_type=HTTP
8+
ngx_module_name=$ngx_addon_name
9+
ngx_module_srcs="$ngx_addon_dir/ngx_http_upload_module.c"
10+
11+
. auto/module
12+
else
13+
HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
14+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"
15+
fi

0 commit comments

Comments
 (0)