Auto merge of #2420 - kozyilmaz:disable-libs, r=str4d
option to disable building libraries (zcutil/build.sh) option to disable building libraries (zcutil/build.sh)
This commit is contained in:
@@ -33,7 +33,7 @@ Usage:
|
|||||||
$0 --help
|
$0 --help
|
||||||
Show this help message and exit.
|
Show this help message and exit.
|
||||||
|
|
||||||
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ] [ --enable-proton ] [ MAKEARGS... ]
|
$0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ] [ --enable-proton ] [ --disable-libs ] [ MAKEARGS... ]
|
||||||
Build Zcash and most of its transitive dependencies from
|
Build Zcash and most of its transitive dependencies from
|
||||||
source. MAKEARGS are applied to both dependencies and Zcash itself.
|
source. MAKEARGS are applied to both dependencies and Zcash itself.
|
||||||
|
|
||||||
@@ -50,6 +50,9 @@ $0 [ --enable-lcov || --disable-tests ] [ --disable-mining ] [ --disable-rust ]
|
|||||||
If --enable-proton is passed, Zcash is configured to build the Apache Qpid Proton
|
If --enable-proton is passed, Zcash is configured to build the Apache Qpid Proton
|
||||||
library required for AMQP support. This library is not built by default.
|
library required for AMQP support. This library is not built by default.
|
||||||
It must be passed after the test/mining/Rust arguments, if present.
|
It must be passed after the test/mining/Rust arguments, if present.
|
||||||
|
|
||||||
|
If --disable-libs is passed, Zcash is configured to not build any libraries like
|
||||||
|
'libzcashconsensus'.
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
@@ -96,6 +99,14 @@ then
|
|||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If --disable-libs is the next argument, build without libs:
|
||||||
|
LIBS_ARG=''
|
||||||
|
if [ "x${1:-}" = 'x--disable-libs' ]
|
||||||
|
then
|
||||||
|
LIBS_ARG='--without-libs'
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
|
||||||
PREFIX="$(pwd)/depends/$BUILD/"
|
PREFIX="$(pwd)/depends/$BUILD/"
|
||||||
|
|
||||||
eval "$MAKE" --version
|
eval "$MAKE" --version
|
||||||
@@ -106,5 +117,5 @@ ld -v
|
|||||||
|
|
||||||
HOST="$HOST" BUILD="$BUILD" NO_RUST="$RUST_ARG" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1
|
HOST="$HOST" BUILD="$BUILD" NO_RUST="$RUST_ARG" NO_PROTON="$PROTON_ARG" "$MAKE" "$@" -C ./depends/ V=1
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" CXXFLAGS='-fwrapv -fno-strict-aliasing -Werror -g'
|
CC="$CC" CXX="$CXX" ./configure --prefix="${PREFIX}" --host="$HOST" --build="$BUILD" "$RUST_ARG" "$HARDENING_ARG" "$LCOV_ARG" "$TEST_ARG" "$MINING_ARG" "$PROTON_ARG" "$LIBS_ARG" CXXFLAGS='-fwrapv -fno-strict-aliasing -Werror -g'
|
||||||
"$MAKE" "$@" V=1
|
"$MAKE" "$@" V=1
|
||||||
|
|||||||
Reference in New Issue
Block a user