[njs] Fixed makefile dependency issue introduced in eb9258cfcf40.

Dmitry Volyntsev xeioex at nginx.com
Tue Mar 17 18:05:37 UTC 2020


details:   https://hg.nginx.org/njs/rev/b2bea51069fd
branches:  
changeset: 1354:b2bea51069fd
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Mar 16 15:49:51 2020 +0300
description:
Fixed makefile dependency issue introduced in eb9258cfcf40.

diffstat:

 auto/make |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r cc5c687ebc1c -r b2bea51069fd auto/make
--- a/auto/make	Thu Mar 05 16:05:40 2020 +0300
+++ b/auto/make	Mon Mar 16 15:49:51 2020 +0300
@@ -177,8 +177,8 @@ njs_src="src/test/njs_externals_test.c"
 fname=$(basename $njs_src)
 njs_externals_obj="test/${fname%.c}.o"
 njs_dep="test/${fname%.c}.dep"
-njs_dep_flags=`njs_gen_dep_flags $njs_dep $fname`
-njs_dep_post=`njs_gen_dep_post $njs_dep $fname`
+njs_dep_flags=`njs_gen_dep_flags $njs_dep $njs_externals_obj`
+njs_dep_post=`njs_gen_dep_post $njs_dep $njs_externals_obj`
 
 cat << END >> $NJS_MAKEFILE
 
@@ -209,8 +209,8 @@ do
 	\$(NJS_CC) -o $NJS_BUILD_DIR/$njs_bin \$(NJS_CFLAGS) \\
 		$NJS_LIB_AUX_CFLAGS \$(NJS_LIB_INCS) \\
 		$njs_dep_flags \\
+		$NJS_BUILD_DIR/$njs_externals_obj \\
 		-Injs $njs_src $NJS_BUILD_DIR/libnjs.a \\
-		$NJS_BUILD_DIR/$njs_externals_obj \\
 		-lm $NJS_LIBS $NJS_LIB_AUX_LIBS
 		$njs_dep_post
 


More information about the nginx-devel mailing list