diff options
author | fanquake <fanquake@gmail.com> | 2022-03-14 09:52:41 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-02 15:46:40 +0100 |
commit | 0d01272cd883f4d2a53409fdc49b8732a3dbda26 (patch) | |
tree | ce48b4db837b7dd616c11d2bacea13a85b47a8a8 /configure.ac | |
parent | d018db966ab8773863583f0283d57cd719accbaa (diff) |
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
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 13add4903b..ccc43fe9e6 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 |