@@ -96,6 +96,11 @@ RTMP_CORE_SRCS=" \
9696 "
9797
9898
99+ RTMP_HTTP_DEPS=" \
100+ $ngx_addon_dir/ngx_http_flv_live_module.h \
101+ "
102+
103+
99104RTMP_HTTP_SRCS=" \
100105 $ngx_addon_dir/ngx_rtmp_stat_module.c \
101106 $ngx_addon_dir/ngx_rtmp_control_module.c \
@@ -104,7 +109,7 @@ RTMP_HTTP_SRCS=" \
104109
105110if [ -f auto/module ] ; then
106111 ngx_module_incs=$ngx_addon_dir
107- ngx_module_deps=$RTMP_DEPS
112+ ngx_module_deps=" $RTMP_DEPS $RTMP_HTTP_DEPS"
108113
109114 if [ $ngx_module_link = DYNAMIC ] ; then
110115 ngx_module_name="$ngx_addon_name $RTMP_CORE_MODULES $RTMP_HTTP_MODULES"
@@ -125,15 +130,15 @@ if [ -f auto/module ] ; then
125130 else
126131 ngx_module_type=CORE
127132 ngx_module_name=$RTMP_CORE_MODULES
133+ ngx_module_deps=$RTMP_DEPS
128134 ngx_module_srcs=$RTMP_CORE_SRCS
129135
130136 . auto/module
131137
132138
133139 ngx_module_type=HTTP
134140 ngx_module_name=$RTMP_HTTP_MODULES
135- ngx_module_incs=
136- ngx_module_deps=
141+ ngx_module_deps=$RTMP_HTTP_DEPS
137142 ngx_module_srcs=$RTMP_HTTP_SRCS
138143
139144 . auto/module
143148 CORE_MODULES="$CORE_MODULES $RTMP_CORE_MODULES"
144149 HTTP_MODULES="$HTTP_MODULES $RTMP_HTTP_MODULES"
145150
146- NGX_ADDON_DEPS="$NGX_ADDON_DEPS $RTMP_DEPS"
151+ NGX_ADDON_DEPS="$NGX_ADDON_DEPS $RTMP_DEPS $RTMP_HTTP_DEPS "
147152 NGX_ADDON_SRCS="$NGX_ADDON_SRCS $RTMP_CORE_SRCS $RTMP_HTTP_SRCS"
148153
149154 CFLAGS="$CFLAGS -I$ngx_addon_dir"
0 commit comments