Skip to content

Commit afcf929

Browse files
committed
Updating make config to build a dynamic module
1 parent 002f8f9 commit afcf929

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

config

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

0 commit comments

Comments
 (0)