Skip to content

Commit d7057d4

Browse files
sipaPastaPastaPasta
authored andcommitted
Merge bitcoin#10766: Building Environment: Set ARFLAGS to cr
912da1d Use AC_ARG_VAR to set ARFLAGS. (René Nyffenegger) Pull request description: Override the default of ARFLAGS of `cru` to `cr`. When building, ar produces a warning for each archive, for example ``` AR libbitcoin_server.a /usr/bin/ar: `u' modifier ignored since `D' is the default (see `U') ``` Since `u` is the default anyway, it cannot hurt to remove it. Tree-SHA512: 7466764f847b70f0f67db25dac87a7794477abf1997cb946682f394fe80ae86ac3ed52cbadb35f0c18a87467755bde5a5158430444cd26fb60fa363cc7bd486d
1 parent 6d856ae commit d7057d4

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=dash-qt
1919
BITCOIN_CLI_NAME=dash-cli
2020
BITCOIN_TX_NAME=dash-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 DASH_CONFIG_H])
@@ -1344,4 +1350,5 @@ echo " CPPFLAGS = $CPPFLAGS"
13441350
echo " CXX = $CXX"
13451351
echo " CXXFLAGS = $CXXFLAGS"
13461352
echo " LDFLAGS = $LDFLAGS"
1353+
echo " ARFLAGS = $ARFLAGS"
13471354
echo

0 commit comments

Comments
 (0)