[njs] Passing --ld-opt flags while linking.
Dmitry Volyntsev
xeioex at nginx.com
Fri Dec 24 16:58:45 UTC 2021
details: https://hg.nginx.org/njs/rev/d493f47f2734
branches:
changeset: 1785:d493f47f2734
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Fri Dec 24 15:48:12 2021 +0000
description:
Passing --ld-opt flags while linking.
diffstat:
auto/make | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 8ef86212d24b -r d493f47f2734 auto/make
--- a/auto/make Fri Dec 24 15:48:11 2021 +0000
+++ b/auto/make Fri Dec 24 15:48:12 2021 +0000
@@ -109,7 +109,7 @@ cat << END >> $NJS_MAKEFILE
$NJS_LIB_AUX_CFLAGS \$(NJS_LIB_INCS) -Injs \\
src/njs_shell.c \\
$NJS_BUILD_DIR/libnjs.a \\
- -lm $NJS_LIBS $NJS_LIB_AUX_LIBS $NJS_READLINE_LIB
+ $NJS_LD_OPT -lm $NJS_LIBS $NJS_LIB_AUX_LIBS $NJS_READLINE_LIB
END
@@ -153,7 +153,7 @@ do
\$(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
+ $njs_dep_post -lm $NJS_LD_OPT
-include $NJS_BUILD_DIR/$njs_dep
@@ -203,7 +203,7 @@ do
$njs_dep_flags \\
$NJS_BUILD_DIR/$njs_externals_obj \\
-Injs $njs_src $NJS_BUILD_DIR/libnjs.a \\
- -lm $NJS_LIBS $NJS_LIB_AUX_LIBS
+ $NJS_LD_OPT -lm $NJS_LIBS $NJS_LIB_AUX_LIBS
$njs_dep_post
-include $NJS_BUILD_DIR/$njs_dep
More information about the nginx-devel
mailing list