Skip to content

Commit 57bbb0d

Browse files
authored
Merge pull request fdintino#98 from khavishbhundoo/patch-2
Support building as a dynamic module with nginx
2 parents 48f1c8a + 66eb0e1 commit 57bbb0d

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)