summaryrefslogtreecommitdiffhomepage
path: root/auto/make
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2020-11-10 17:13:20 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2020-11-10 17:13:20 +0300
commit23597e97f52316ef024796c5f1b5ca0d70ecff31 (patch)
tree645293bffc93bd840fd74693b94b277232f20771 /auto/make
parent3030907f5f57ca7087f8073e1559ba22f3004671 (diff)
downloadnginx-23597e97f52316ef024796c5f1b5ca0d70ecff31.tar.gz
nginx-23597e97f52316ef024796c5f1b5ca0d70ecff31.tar.bz2
Configure: shared sources for addon modules.
Addon modules, both dynamic and static, can now use shared source files. Shared sources result in only one make rule even if specified several times in different modules.
Diffstat (limited to 'auto/make')
-rw-r--r--auto/make3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto/make b/auto/make
index 041d280cd..ef7c9f694 100644
--- a/auto/make
+++ b/auto/make
@@ -502,6 +502,7 @@ fi
for ngx_module in $DYNAMIC_MODULES
do
eval ngx_module_srcs="\$${ngx_module}_SRCS"
+ eval ngx_module_shrd="\$${ngx_module}_SHRD"
eval eval ngx_module_libs="\\\"\$${ngx_module}_LIBS\\\""
eval ngx_module_modules="\$${ngx_module}_MODULES"
@@ -567,7 +568,7 @@ END
| sed -e "s/\(.*\.\)c/\1$ngx_objext/"`
ngx_module_objs=
- for ngx_src in $ngx_module_srcs
+ for ngx_src in $ngx_module_srcs $ngx_module_shrd
do
case "$ngx_src" in
src/*)