@@ -890,13 +890,22 @@ build_from_tarball_boost()
890890 initialize_boost_configuration
891891 initialize_boost_icu_configuration
892892
893+ guessed_toolset=` ./tools/build/src/engine/build.sh --guess-toolset`
894+ CXXFLAGS=" -w" ./tools/build/src/engine/build.sh ${guessed_toolset} --cxxflags=" -w"
895+ cp tools/build/src/engine/b2 .
896+ if [[ (x" $BOOST_CXXFLAGS " == " x" ) ]]; then
897+ BOOST_CXXFLAGS=" cxxflags=${BOOST_FLAGS[@]} "
898+ else
899+ BOOST_CXXFLAGS=" $BOOST_CXXFLAGS ${BOOST_FLAGS[@]} "
900+ fi
901+
893902 display_message " Libbitcoin boost configuration."
894903 display_message " --------------------------------------------------------------------"
895904 display_message " variant : release"
896905 display_message " threading : multi"
897906 display_message " toolset : $CC "
898- display_message " cxxflags : $STDLIB_FLAG "
899- display_message " linkflags : $STDLIB_FLAG "
907+ display_message " boost cxxflags : $BOOST_CXXFLAGS "
908+ display_message " boost linkflags : $BOOST_LINKFLAGS "
900909 display_message " link : $BOOST_LINK "
901910 display_message " boost.locale.iconv : $BOOST_ICU_ICONV "
902911 display_message " boost.locale.posix : $BOOST_ICU_POSIX "
@@ -910,12 +919,9 @@ build_from_tarball_boost()
910919 display_message " --reconfigure : [ignore cached configuration]"
911920 display_message " --prefix : $PREFIX "
912921 display_message " BOOST_OPTIONS : $* "
922+ display_message " cxxflags (ignored) : $CXXFLAGS "
913923 display_message " --------------------------------------------------------------------"
914924
915- guessed_toolset=` ./tools/build/src/engine/build.sh --guess-toolset`
916- CXXFLAGS=" -w" ./tools/build/src/engine/build.sh ${guessed_toolset} --cxxflags=" -w"
917- cp tools/build/src/engine/b2 .
918-
919925 ./bootstrap.sh \
920926 " --with-bjam=./b2" \
921927 " --prefix=$PREFIX " \
@@ -1032,6 +1038,11 @@ ZMQ_FLAGS=(
10321038ICU_FLAGS=(
10331039" -w" )
10341040
1041+ # Define boost flags.
1042+ # ------------------------------------------------------------------------------
1043+ BOOST_FLAGS=(
1044+ " -Wno-enum-constexpr-conversion" )
1045+
10351046# Define secp256k1 flags.
10361047# ------------------------------------------------------------------------------
10371048SECP256K1_FLAGS=(
0 commit comments