@@ -84,10 +84,7 @@ for OPTION in "$@"; do
8484 case $OPTION in
8585 (--prefix=* ) PREFIX=" ${OPTION#* =} " ;;
8686 (--build-dir=* ) BUILD_DIR=" ${OPTION#* =} " ;;
87-
88- (--build-gmp) BUILD_GMP=" yes" ;;
8987 (--build-boost) BUILD_BOOST=" yes" ;;
90-
9188 (--disable-shared) DISABLE_SHARED=" yes" ;;
9289 (--disable-static) DISABLE_STATIC=" yes" ;;
9390 esac
@@ -98,7 +95,7 @@ echo "Prefix directory: $PREFIX"
9895# Purge our custom options so they don't go to configure.
9996# ------------------------------------------------------------------------------
10097CONFIGURE_OPTIONS=( " $@ " )
101- CUSTOM_OPTIONS=( " --build-dir=$BUILD_DIR " " --build-boost" " --build-gmp " )
98+ CUSTOM_OPTIONS=( " --build-dir=$BUILD_DIR " " --build-boost" )
10299for CUSTOM_OPTION in " ${CUSTOM_OPTIONS[@]} " ; do
103100 CONFIGURE_OPTIONS=( " ${CONFIGURE_OPTIONS[@]/ $CUSTOM_OPTION } " )
104101done
@@ -144,12 +141,7 @@ if [[ $PREFIX ]]; then
144141 if [[ $BUILD_BOOST == yes ]]; then
145142 with_boost=" --with-boost=$PREFIX "
146143 fi
147-
148- # Set public gmp_flags variable (because GMP has no pkg-config).
149- if [[ $BUILD_GMP == yes ]]; then
150- gmp_flags=" CPPFLAGS=-I$PREFIX /include LDFLAGS=-L$PREFIX /lib"
151- fi
152-
144+
153145 # Set public prefix variable (to tell Boost where to build).
154146 prefix=" --prefix=$PREFIX "
155147fi
@@ -160,7 +152,6 @@ echo "Published dynamic options:"
160152echo " boost_link: $boost_link "
161153echo " boost_stdlib: $boost_stdlib "
162154echo " prefix: $prefix "
163- echo " gmp_flags: $gmp_flags "
164155echo " with_boost: $with_boost "
165156echo " with_pkgconfigdir: $with_pkgconfigdir "
166157
@@ -242,6 +233,12 @@ BITCOIN_OPTIONS=\
242233" ${with_boost} " \
243234" ${with_pkgconfigdir} "
244235
236+ # Define bitcoin-consensus options.
237+ # ------------------------------------------------------------------------------
238+ BITCOIN_CONSENSUS_OPTIONS=\
239+ " --without-tests " \
240+ " ${with_pkgconfigdir} "
241+
245242# Define bitcoin-blockchain options.
246243# ------------------------------------------------------------------------------
247244BITCOIN_BLOCKCHAIN_OPTIONS=\
@@ -406,41 +403,6 @@ build_from_tarball_boost()
406403 pop_directory
407404}
408405
409- build_from_tarball_gmp ()
410- {
411- local URL=$1
412- local ARCHIVE=$2
413- local REPO=$3
414- local JOBS=$4
415- shift 4
416-
417- if [[ $BUILD_GMP != yes ]]; then
418- display_message " GMP build not enabled"
419- return
420- fi
421-
422- display_message " Download $ARCHIVE "
423-
424- create_directory $REPO
425- push_directory $REPO
426-
427- # Extract the source locally.
428- wget --output-document $ARCHIVE $URL
429- tar --extract --file $ARCHIVE --bzip2 --strip-components=1
430-
431- # Build the local sources.
432- # GMP does not provide autogen.sh or package config.
433- configure_options " $@ "
434-
435- # GMP does not honor noise reduction.
436- echo " Making all..."
437- make_jobs $JOBS > /dev/null
438- echo " Installing all..."
439- make install > /dev/null
440-
441- pop_directory
442- }
443-
444406build_from_github ()
445407{
446408 local ACCOUNT=$1
@@ -509,6 +471,7 @@ build_all()
509471 build_from_github zeromq czmqpp master $PARALLEL " $@ " $CZMQPP_OPTIONS
510472 build_from_github libbitcoin secp256k1 version2 $PARALLEL " $@ " $SECP256K1_OPTIONS
511473 build_from_github libbitcoin libbitcoin master $PARALLEL " $@ " $BITCOIN_OPTIONS
474+ build_from_github libbitcoin libbitcoin-consensus master $PARALLEL " $@ " $BITCOIN_CONSENSUS_OPTIONS
512475 build_from_github libbitcoin libbitcoin-blockchain master $PARALLEL " $@ " $BITCOIN_BLOCKCHAIN_OPTIONS
513476 build_from_github libbitcoin libbitcoin-node master $PARALLEL " $@ " $BITCOIN_NODE_OPTIONS
514477 build_from_travis libbitcoin libbitcoin-server version2 $PARALLEL " $@ " $BITCOIN_SERVER_OPTIONS
0 commit comments