Welcome! Log In Create A New Profile

Advanced

[njs] Passing --ld-opt flags while linking.

Dmitry Volyntsev
December 24, 2021 12:00PM
details: https://hg.nginx.org/njs/rev/d493f47f2734
branches:
changeset: 1785:d493f47f2734
user: Dmitry Volyntsev <xeioex@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
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Passing --ld-opt flags while linking.

Dmitry Volyntsev 186 December 24, 2021 12:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 118
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready