diff --git a/install-cmake.sh b/install-cmake.sh index 47e704d06..155348348 100755 --- a/install-cmake.sh +++ b/install-cmake.sh @@ -58,7 +58,7 @@ fi # The default build directory. #------------------------------------------------------------------------------ -BUILD_DIR="build-libbitcoin-database" +BUILD_SRC_DIR="build-libbitcoin-database" PRESUMED_CI_PROJECT_PATH=$(pwd) @@ -160,13 +160,13 @@ make_jobs() shift 1 VERBOSITY="" - if [[ DISPLAY_VERBOSE ]]; then + if [[ $DISPLAY_VERBOSE ]]; then VERBOSITY="VERBOSE=1" fi SEQUENTIAL=1 # Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]). - if [[ $JOBS > $SEQUENTIAL ]]; then + if [[ $JOBS -gt $SEQUENTIAL ]]; then make -j"$JOBS" "$@" $VERBOSITY else make "$@" $VERBOSITY @@ -270,7 +270,7 @@ parse_command_line_options() (--build-secp256k1) BUILD_SECP256K1="yes";; # Unique script options. - (--build-dir=*) BUILD_DIR="${OPTION#*=}";; + (--build-dir=*) BUILD_SRC_DIR="${OPTION#*=}";; # Handle ndebug declarations due to disabled argument passthrough (--enable-ndebug) ENABLE_NDEBUG="yes";; @@ -324,11 +324,6 @@ set_os_specific_compiler_settings() else # Linux STDLIB="stdc++" fi - - if [[ ($OS == Darwin) && ($CC == clang*) ]]; then - CFLAGS="${CFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - CXXFLAGS="${CXXFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - fi } link_to_standard_library() @@ -479,7 +474,7 @@ display_configuration() display_message "BUILD_BOOST : $BUILD_BOOST" display_message "BUILD_SECP256K1 : $BUILD_SECP256K1" display_message "BOOST_ROOT : $BOOST_ROOT" - display_message "BUILD_DIR : $BUILD_DIR" + display_message "BUILD_SRC_DIR : $BUILD_SRC_DIR" display_message "CUMULATIVE_FILTERED_ARGS : $CUMULATIVE_FILTERED_ARGS" display_message "CUMULATIVE_FILTERED_ARGS_CMAKE : $CUMULATIVE_FILTERED_ARGS_CMAKE" display_message "PREFIX : $PREFIX" @@ -1045,10 +1040,10 @@ BITCOIN_DATABASE_OPTIONS=( display_configuration if [[ ! ($CI == true) ]]; then - create_directory "$BUILD_DIR" - push_directory "$BUILD_DIR" + create_directory "$BUILD_SRC_DIR" + push_directory "$BUILD_SRC_DIR" else - push_directory "$BUILD_DIR" + push_directory "$BUILD_SRC_DIR" fi initialize_git diff --git a/install-cmakepresets.sh b/install-cmakepresets.sh index b725e91c7..8c438609f 100755 --- a/install-cmakepresets.sh +++ b/install-cmakepresets.sh @@ -64,7 +64,7 @@ fi # The default build directory. #------------------------------------------------------------------------------ -BUILD_DIR="build-libbitcoin-database" +BUILD_SRC_DIR="build-libbitcoin-database" PRESUMED_CI_PROJECT_PATH=$(pwd) @@ -166,13 +166,13 @@ make_jobs() shift 1 VERBOSITY="" - if [[ DISPLAY_VERBOSE ]]; then + if [[ $DISPLAY_VERBOSE ]]; then VERBOSITY="VERBOSE=1" fi SEQUENTIAL=1 # Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]). - if [[ $JOBS > $SEQUENTIAL ]]; then + if [[ $JOBS -gt $SEQUENTIAL ]]; then make -j"$JOBS" "$@" $VERBOSITY else make "$@" $VERBOSITY @@ -277,7 +277,7 @@ parse_command_line_options() (--build-secp256k1) BUILD_SECP256K1="yes";; # Unique script options. - (--build-dir=*) BUILD_DIR="${OPTION#*=}";; + (--build-dir=*) BUILD_SRC_DIR="${OPTION#*=}";; (--preset=*) PRESET_ID="${OPTION#*=}";; # Handle ndebug declarations due to disabled argument passthrough @@ -332,11 +332,6 @@ set_os_specific_compiler_settings() else # Linux STDLIB="stdc++" fi - - if [[ ($OS == Darwin) && ($CC == clang*) ]]; then - CFLAGS="${CFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - CXXFLAGS="${CXXFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - fi } link_to_standard_library() @@ -514,7 +509,7 @@ display_configuration() display_message "BUILD_BOOST : $BUILD_BOOST" display_message "BUILD_SECP256K1 : $BUILD_SECP256K1" display_message "BOOST_ROOT : $BOOST_ROOT" - display_message "BUILD_DIR : $BUILD_DIR" + display_message "BUILD_SRC_DIR : $BUILD_SRC_DIR" display_message "PRESET_ID : $PRESET_ID" display_message "CUMULATIVE_FILTERED_ARGS : $CUMULATIVE_FILTERED_ARGS" display_message "CUMULATIVE_FILTERED_ARGS_CMAKE : $CUMULATIVE_FILTERED_ARGS_CMAKE" @@ -1087,10 +1082,10 @@ BITCOIN_DATABASE_OPTIONS=( display_configuration if [[ ! ($CI == true) ]]; then - create_directory "$BUILD_DIR" - push_directory "$BUILD_DIR" + create_directory "$BUILD_SRC_DIR" + push_directory "$BUILD_SRC_DIR" else - push_directory "$BUILD_DIR" + push_directory "$BUILD_SRC_DIR" fi initialize_git diff --git a/install.sh b/install.sh index 8325e5b46..e3b28005b 100755 --- a/install.sh +++ b/install.sh @@ -58,7 +58,7 @@ fi # The default build directory. #------------------------------------------------------------------------------ -BUILD_DIR="build-libbitcoin-database" +BUILD_SRC_DIR="build-libbitcoin-database" PRESUMED_CI_PROJECT_PATH=$(pwd) @@ -160,13 +160,13 @@ make_jobs() shift 1 VERBOSITY="" - if [[ DISPLAY_VERBOSE ]]; then + if [[ $DISPLAY_VERBOSE ]]; then VERBOSITY="VERBOSE=1" fi SEQUENTIAL=1 # Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]). - if [[ $JOBS > $SEQUENTIAL ]]; then + if [[ $JOBS -gt $SEQUENTIAL ]]; then make -j"$JOBS" "$@" $VERBOSITY else make "$@" $VERBOSITY @@ -270,7 +270,7 @@ parse_command_line_options() (--build-secp256k1) BUILD_SECP256K1="yes";; # Unique script options. - (--build-dir=*) BUILD_DIR="${OPTION#*=}";; + (--build-dir=*) BUILD_SRC_DIR="${OPTION#*=}";; esac done } @@ -319,11 +319,6 @@ set_os_specific_compiler_settings() else # Linux STDLIB="stdc++" fi - - if [[ ($OS == Darwin) && ($CC == clang*) ]]; then - CFLAGS="${CFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - CXXFLAGS="${CXXFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" - fi } link_to_standard_library() @@ -424,7 +419,7 @@ display_configuration() display_message "BUILD_BOOST : $BUILD_BOOST" display_message "BUILD_SECP256K1 : $BUILD_SECP256K1" display_message "BOOST_ROOT : $BOOST_ROOT" - display_message "BUILD_DIR : $BUILD_DIR" + display_message "BUILD_SRC_DIR : $BUILD_SRC_DIR" display_message "PREFIX : $PREFIX" display_message "DISABLE_SHARED : $DISABLE_SHARED" display_message "DISABLE_STATIC : $DISABLE_STATIC" @@ -919,10 +914,10 @@ BITCOIN_DATABASE_OPTIONS=( display_configuration if [[ ! ($CI == true) ]]; then - create_directory "$BUILD_DIR" - push_directory "$BUILD_DIR" + create_directory "$BUILD_SRC_DIR" + push_directory "$BUILD_SRC_DIR" else - push_directory "$BUILD_DIR" + push_directory "$BUILD_SRC_DIR" fi initialize_git