@@ -917,7 +917,12 @@ build_from_tarball_boost()
917917 display_message " BOOST_OPTIONS : $* "
918918 display_message " --------------------------------------------------------------------"
919919
920+ guessed_toolset=` ./tools/build/src/engine/build.sh --guess-toolset`
921+ CXXFLAGS=" -w" ./tools/build/src/engine/build.sh ${guessed_toolset} --cxxflags=" -w"
922+ cp tools/build/src/engine/b2 .
923+
920924 ./bootstrap.sh \
925+ " --with-bjam=./b2" \
921926 " --prefix=$PREFIX " \
922927 " --with-icu=$ICU_PREFIX "
923928
@@ -935,6 +940,7 @@ build_from_tarball_boost()
935940 " $BOOST_CXXFLAGS " \
936941 " $BOOST_LINKFLAGS " \
937942 " link=$BOOST_LINK " \
943+ " warnings=off" \
938944 " boost.locale.iconv=$BOOST_ICU_ICONV " \
939945 " boost.locale.posix=$BOOST_ICU_POSIX " \
940946 " -sNO_BZIP2=1" \
@@ -958,16 +964,33 @@ build_from_tarball_boost()
958964build_all ()
959965{
960966 unpack_from_tarball " $ZMQ_ARCHIVE " " $ZMQ_URL " gzip " $BUILD_ZMQ "
967+ local SAVE_CPPFLAGS=" $CPPFLAGS "
968+ export CPPFLAGS=" $CPPFLAGS ${ZMQ_FLAGS[@]} "
961969 build_from_tarball " $ZMQ_ARCHIVE " . " $PARALLEL " " $BUILD_ZMQ " " ${ZMQ_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
970+ export CPPFLAGS=$SAVE_CPPFLAGS
962971 unpack_from_tarball " $ICU_ARCHIVE " " $ICU_URL " gzip " $BUILD_ICU "
972+ local SAVE_CPPFLAGS=" $CPPFLAGS "
973+ export CPPFLAGS=" $CPPFLAGS ${ICU_FLAGS[@]} "
963974 build_from_tarball " $ICU_ARCHIVE " source " $PARALLEL " " $BUILD_ICU " " ${ICU_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
975+ export CPPFLAGS=$SAVE_CPPFLAGS
964976 unpack_from_tarball " $BOOST_ARCHIVE " " $BOOST_URL " bzip2 " $BUILD_BOOST "
977+ local SAVE_CPPFLAGS=" $CPPFLAGS "
978+ export CPPFLAGS=" $CPPFLAGS ${BOOST_FLAGS[@]} "
965979 build_from_tarball_boost " $BOOST_ARCHIVE " " $PARALLEL " " $BUILD_BOOST " " ${BOOST_OPTIONS[@]} "
980+ export CPPFLAGS=$SAVE_CPPFLAGS
966981 create_from_github libbitcoin secp256k1 version8 " yes"
982+ local SAVE_CPPFLAGS=" $CPPFLAGS "
983+ export CPPFLAGS=" $CPPFLAGS ${SECP256K1_FLAGS[@]} "
967984 build_from_github secp256k1 " $PARALLEL " false " yes" " ${SECP256K1_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
985+ export CPPFLAGS=$SAVE_CPPFLAGS
968986 create_from_github libbitcoin libbitcoin-system master " yes"
987+ local SAVE_CPPFLAGS=" $CPPFLAGS "
988+ export CPPFLAGS=" $CPPFLAGS ${BITCOIN_SYSTEM_FLAGS[@]} "
969989 display_message " libbitcoin-system PRESET ${REPO_PRESET[libbitcoin-system]} "
970990 build_from_github_cmake libbitcoin-system ${REPO_PRESET[libbitcoin-system]} " $PARALLEL " false " yes" " ${BITCOIN_SYSTEM_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS_CMAKE " $@ "
991+ export CPPFLAGS=$SAVE_CPPFLAGS
992+ local SAVE_CPPFLAGS=" $CPPFLAGS "
993+ export CPPFLAGS=" $CPPFLAGS ${BITCOIN_PROTOCOL_FLAGS[@]} "
971994 if [[ ! ($CI == true) ]]; then
972995 create_from_github libbitcoin libbitcoin-protocol master " yes"
973996 display_message " libbitcoin-protocol PRESET ${REPO_PRESET[libbitcoin-protocol]} "
@@ -980,6 +1003,7 @@ build_all()
9801003 pop_directory
9811004 pop_directory
9821005 fi
1006+ export CPPFLAGS=$SAVE_CPPFLAGS
9831007}
9841008
9851009
@@ -1001,6 +1025,24 @@ set_with_boost_prefix
10011025
10021026remove_install_options
10031027
1028+ # Define build flags.
1029+ # ==============================================================================
1030+ # Define zmq flags.
1031+ # ------------------------------------------------------------------------------
1032+ ZMQ_FLAGS=(
1033+ " -w" )
1034+
1035+ # Define icu flags.
1036+ # ------------------------------------------------------------------------------
1037+ ICU_FLAGS=(
1038+ " -w" )
1039+
1040+ # Define secp256k1 flags.
1041+ # ------------------------------------------------------------------------------
1042+ SECP256K1_FLAGS=(
1043+ " -w" )
1044+
1045+
10041046# Define build options.
10051047# ==============================================================================
10061048# Define zmq options.
0 commit comments