From 0d01272cd883f4d2a53409fdc49b8732a3dbda26 Mon Sep 17 00:00:00 2001 From: fanquake Date: Mon, 14 Mar 2022 09:52:41 +0000 Subject: [PATCH] build: don't use Boost multi_index serialization We don't use the serialilzation or archiving facilities of multi_index. So globally disable support, which gives a minor improvement in build time, i.e less preprocessing work. See: https://www.boost.org/doc/libs/1_78_0/libs/multi_index/doc/tutorial/creation.html --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 13add4903b6..ccc43fe9e6a 100644 --- a/configure.ac +++ b/configure.ac @@ -1435,6 +1435,9 @@ if test "$use_boost" = "yes"; then AC_MSG_ERROR([only libbitcoinconsensus can be built without Boost]) fi + dnl we don't use multi_index serialization + BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION" + if test "$suppress_external_warnings" != "no"; then BOOST_CPPFLAGS=SUPPRESS_WARNINGS($BOOST_CPPFLAGS) fi