Skip to content

Commit 2f93b9a

Browse files
committed
feature: now this module can be compiled as a dynamic module with ./configure --add-dynamic-module=PATH in NGINX 1.9.11+. thanks Sjir Bagmeijer for the original patch in #44.
1 parent cc19196 commit 2f93b9a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

config

+14-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ HEADERS_MORE_DEPS=" \
1616
$ngx_addon_dir/src/ngx_http_headers_more_util.h \
1717
"
1818

19-
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES $ngx_addon_name"
20-
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HEADERS_MORE_SRCS"
21-
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HEADERS_MORE_DEPS"
19+
if test -n "$ngx_module_link"; then
20+
ngx_module_type=HTTP_AUX_FILTER
21+
ngx_module_name=$ngx_addon_name
22+
ngx_module_incs=
23+
ngx_module_deps="$HEADERS_MORE_DEPS"
24+
ngx_module_srcs="$HEADERS_MORE_SRCS"
25+
ngx_module_libs=
26+
27+
. auto/module
28+
else
29+
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES $ngx_addon_name"
30+
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HEADERS_MORE_SRCS"
31+
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HEADERS_MORE_DEPS"
32+
fi

0 commit comments

Comments
 (0)