[njs] Allowing to configure ar binary.
Dmitry Volyntsev
xeioex at nginx.com
Fri Jul 12 20:31:13 UTC 2019
details: https://hg.nginx.org/njs/rev/8cfbc7785708
branches:
changeset: 1043:8cfbc7785708
user: Dmitry Volyntsev <xeioex at 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}
More information about the nginx-devel
mailing list