summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-03-14 19:05:43 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-03-14 19:05:43 +0300
commit5135fcea930985dab45085033c5aae54c6ad1a65 (patch)
tree1b7dc8de207155d527a1322be5cb0f5a02a7a985
parent3a8a4744b8496cc8f607b1a8e14c5f1f60628d38 (diff)
downloadunit-5135fcea930985dab45085033c5aae54c6ad1a65.tar.gz
unit-5135fcea930985dab45085033c5aae54c6ad1a65.tar.bz2
Adding CFLAGS to link commands to pass flags required by
AddressSanitizer.
Diffstat (limited to '')
-rw-r--r--auto/make4
1 files changed, 2 insertions, 2 deletions
diff --git a/auto/make b/auto/make
index bf81b44a..c34b2a71 100644
--- a/auto/make
+++ b/auto/make
@@ -116,7 +116,7 @@ cat << END >> $NXT_MAKEFILE
$NXT_BUILD_DIR/lib_unit_test: \$(NXT_LIB_UNIT_TEST_OBJS) \\
$NXT_BUILD_DIR/$NXT_LIB_STATIC \$(NXT_LIB_DEPS)
\$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/lib_unit_test \\
- \$(NXT_LIB_UNIT_TEST_OBJS) \\
+ \$(CFLAGS) \$(NXT_LIB_UNIT_TEST_OBJS) \\
$NXT_BUILD_DIR/$NXT_LIB_STATIC \\
$NXT_LD_OPT $NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS
@@ -191,7 +191,7 @@ cat << END >> $NXT_MAKEFILE
$NXT_BUILD_DIR/$NXT_BIN: $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
\$(NXT_OBJS)
- \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/$NXT_BIN \\
+ \$(NXT_EXEC_LINK) -o $NXT_BUILD_DIR/$NXT_BIN \$(CFLAGS) \\
\$(NXT_OBJS) $NXT_BUILD_DIR/$NXT_LIB_STATIC \\
$NXT_LIBM $NXT_LIBS $NXT_LIB_AUX_LIBS