Welcome! Log In Create A New Profile

Advanced

[njs] Allowing to configure ar binary.

Dmitry Volyntsev
July 12, 2019 04:32PM
details: https://hg.nginx.org/njs/rev/8cfbc7785708
branches:
changeset: 1043:8cfbc7785708
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Fri Jul 12 21:18:30 2019 +0300
description:
Allowing to configure ar binary.

diffstat:

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

diffs (40 lines):

diff -r 71e6a00bd921 -r 8cfbc7785708 auto/make
--- a/auto/make Thu Jul 11 21:29:59 2019 +0300
+++ b/auto/make Fri Jul 12 21:18:30 2019 +0300
@@ -15,6 +15,7 @@ cat << END > $NXT_MAKEFILE
# This file is auto-generated by configure

NXT_CC = ${CC}
+NXT_AR = ${AR}
NXT_CFLAGS = ${NXT_CFLAGS} ${CFLAGS}

default: $NXT_DEFAULT_TARGET
@@ -57,7 +58,7 @@ libnxt: $NXT_BUILD_DIR/libnxt.a
$NXT_BUILD_DIR/libnxt.a: \\
$NXT_BUILD_DIR/nxt_auto_config.h \\
\$(NXT_LIB_OBJS)
- ar -r -c $NXT_BUILD_DIR/libnxt.a \\
+ \$(NXT_AR) -r -c $NXT_BUILD_DIR/libnxt.a \\
\$(NXT_LIB_OBJS)

END
@@ -136,7 +137,7 @@ libnjs: $NXT_BUILD_DIR/libnjs.a
\$(NXT_LIB_OBJS) \\
\$(NJS_LIB_OBJS)

- ar -r -c $NXT_BUILD_DIR/libnjs.a \\
+ \$(NXT_AR) -r -c $NXT_BUILD_DIR/libnjs.a \\
\$(NXT_LIB_OBJS) \\
\$(NJS_LIB_OBJS)

diff -r 71e6a00bd921 -r 8cfbc7785708 configure
--- a/configure Thu Jul 11 21:29:59 2019 +0300
+++ b/configure Fri Jul 12 21:18:30 2019 +0300
@@ -22,6 +22,7 @@ NXT_TEST_LIBS=${NXT_TEST_LIBS=}

# Initialize variables with default if they are not defined.
CC=${CC:-cc}
+AR=${AR:-ar}
NXT_CFLAGS=${NXT_CFLAGS=}
NXT_CC_OPT=${NXT_CC_OPT:--O}
NXT_LD_OPT=${NXT_CC_OPT:--O}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Allowing to configure ar binary.

Dmitry Volyntsev 193 July 12, 2019 04:32PM



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

Online Users

Guests: 317
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready