[njs] Fixed building unit tests binaries on MacOS with custom LDFLAGS.

Dmitry Volyntsev xeioex at nginx.com
Mon Nov 29 14:27:38 UTC 2021


details:   https://hg.nginx.org/njs/rev/94e5a03702f9
branches:  
changeset: 1751:94e5a03702f9
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Nov 29 14:05:33 2021 +0000
description:
Fixed building unit tests binaries on MacOS with custom LDFLAGS.

diffstat:

 auto/make |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 7f72930cf1ac -r 94e5a03702f9 auto/make
--- a/auto/make	Mon Nov 22 13:37:11 2021 +0000
+++ b/auto/make	Mon Nov 29 14:05:33 2021 +0000
@@ -136,7 +136,7 @@ do
 
 $NJS_BUILD_DIR/$njs_bin: $njs_src \\
 	$NJS_BUILD_DIR/libnjs.a
-	\$(NJS_CC) -o $NJS_BUILD_DIR/$njs_bin \$(NJS_CFLAGS) \\
+	\$(NJS_LINK) -o $NJS_BUILD_DIR/$njs_bin \$(NJS_CFLAGS) \\
 		\$(NJS_LIB_INCS) $njs_dep_flags \\
 		$njs_src $NJS_BUILD_DIR/libnjs.a \\
 		$njs_dep_post -lm
@@ -184,7 +184,7 @@ do
 $NJS_BUILD_DIR/$njs_bin: $njs_src \\
 	$NJS_BUILD_DIR/libnjs.a \\
 	$NJS_BUILD_DIR/$njs_externals_obj
-	\$(NJS_CC) -o $NJS_BUILD_DIR/$njs_bin \$(NJS_CFLAGS) \\
+	\$(NJS_LINK) -o $NJS_BUILD_DIR/$njs_bin \$(NJS_CFLAGS) \\
 		$NJS_LIB_AUX_CFLAGS \$(NJS_LIB_INCS) \\
 		$njs_dep_flags \\
 		$NJS_BUILD_DIR/$njs_externals_obj \\


More information about the nginx-devel mailing list