Skip to content

Commit 912da1d

Browse files
Use AC_ARG_VAR to set ARFLAGS.
The user can set ARFLAGS in the ./configure step with ./configure ARFLAGS=... If he chooses not to do so, ARFLAGS will be set to cr.
1 parent d3b5870 commit 912da1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ BITCOIN_GUI_NAME=bitcoin-qt
1919
BITCOIN_CLI_NAME=bitcoin-cli
2020
BITCOIN_TX_NAME=bitcoin-tx
2121

22+
dnl Unless the user specified ARFLAGS, force it to be cr
23+
AC_ARG_VAR(ARFLAGS, [Flags for the archiver, defaults to <cr> if not set])
24+
if test "x${ARFLAGS+set}" != "xset"; then
25+
ARFLAGS="cr"
26+
fi
27+
2228
AC_CANONICAL_HOST
2329

2430
AH_TOP([#ifndef BITCOIN_CONFIG_H])
@@ -1262,4 +1268,5 @@ echo " CPPFLAGS = $CPPFLAGS"
12621268
echo " CXX = $CXX"
12631269
echo " CXXFLAGS = $CXXFLAGS"
12641270
echo " LDFLAGS = $LDFLAGS"
1271+
echo " ARFLAGS = $ARFLAGS"
12651272
echo

0 commit comments

Comments
 (0)