@@ -233,9 +233,10 @@ display_help()
233233 display_message " accesses this feature, so if you do not intend to "
234234 display_message " use passphrase normalization this dependency can "
235235 display_message " be avoided."
236- display_message " --build-icu Builds ICU libraries."
237- display_message " --build-boost Builds Boost libraries."
238236 display_message " --build-zmq Build ZeroMQ libraries."
237+ display_message " --build-icu Build ICU libraries."
238+ display_message " --build-boost Build Boost libraries."
239+ display_message " --build-secp256k1 Build libsecp256k1 libraries."
239240 display_message " --build-dir=<path> Location of downloaded and intermediate files."
240241 display_message " --prefix=<absolute-path> Library install location (defaults to /usr/local)."
241242 display_message " --disable-shared Disables shared library builds."
@@ -264,10 +265,11 @@ parse_command_line_options()
264265 # Common project options.
265266 (--with-icu) WITH_ICU=" yes" ;;
266267
267- # Custom build options (in the form of --build-<option>).
268- (--build-icu) BUILD_ICU=" yes" ;;
269- (--build-zmq) BUILD_ZMQ=" yes" ;;
270- (--build-boost) BUILD_BOOST=" yes" ;;
268+ # Custom build options.
269+ (--build-zmq) BUILD_ZMQ=" yes" ;;
270+ (--build-icu) BUILD_ICU=" yes" ;;
271+ (--build-boost) BUILD_BOOST=" yes" ;;
272+ (--build-secp256k1) BUILD_SECP256K1=" yes" ;;
271273
272274 # Unique script options.
273275 (--build-dir=* ) BUILD_DIR=" ${OPTION#* =} " ;;
@@ -470,9 +472,10 @@ display_configuration()
470472 display_message " LDFLAGS : $LDFLAGS "
471473 display_message " LDLIBS : $LDLIBS "
472474 display_message " WITH_ICU : $WITH_ICU "
473- display_message " BUILD_ICU : $BUILD_ICU "
474475 display_message " BUILD_ZMQ : $BUILD_ZMQ "
476+ display_message " BUILD_ICU : $BUILD_ICU "
475477 display_message " BUILD_BOOST : $BUILD_BOOST "
478+ display_message " BUILD_SECP256K1 : $BUILD_SECP256K1 "
476479 display_message " BOOST_ROOT : $BOOST_ROOT "
477480 display_message " BUILD_DIR : $BUILD_DIR "
478481 display_message " CUMULATIVE_FILTERED_ARGS : $CUMULATIVE_FILTERED_ARGS "
@@ -930,10 +933,10 @@ build_all()
930933 export CPPFLAGS=" $CPPFLAGS ${BOOST_FLAGS[@]} "
931934 build_from_tarball_boost " $BOOST_ARCHIVE " " $PARALLEL " " $BUILD_BOOST " " ${BOOST_OPTIONS[@]} "
932935 export CPPFLAGS=$SAVE_CPPFLAGS
933- create_from_github bitcoin-core secp256k1 v0.5.1 " yes "
936+ create_from_github bitcoin-core secp256k1 v0.5.1 " $BUILD_SECP256K1 "
934937 local SAVE_CPPFLAGS=" $CPPFLAGS "
935938 export CPPFLAGS=" $CPPFLAGS ${SECP256K1_FLAGS[@]} "
936- build_from_github secp256k1 " $PARALLEL " false " yes " " ${SECP256K1_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
939+ build_from_github secp256k1 " $PARALLEL " false " $BUILD_SECP256K1 " " ${SECP256K1_OPTIONS[@]} " $CUMULATIVE_FILTERED_ARGS
937940 export CPPFLAGS=$SAVE_CPPFLAGS
938941 create_from_github libbitcoin libbitcoin-system master " yes"
939942 local SAVE_CPPFLAGS=" $CPPFLAGS "
0 commit comments