Document repeatable wallet builds

This commit is contained in:
root
2026-04-29 14:11:52 +00:00
parent 44f1fb0435
commit 47495ff4cf
11 changed files with 413 additions and 45 deletions
+25 -10
View File
@@ -3,19 +3,34 @@ set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
JOBS="${JOBS:-1}"
MODE="${MODE:-daemon}"
cd "$ROOT"
./autogen.sh
if [[ ! -f configure ]]; then
./autogen.sh
fi
./configure \
--without-gui \
--disable-tests \
--disable-bench \
--disable-zmq \
--with-miniupnpc=no \
--with-incompatible-bdb \
CXXFLAGS="${CXXFLAGS:--O0 -g0 --param ggc-min-expand=1 --param ggc-min-heapsize=32768}"
case "$MODE" in
daemon)
./configure \
--without-gui \
--disable-tests \
--disable-bench \
--disable-zmq \
--with-miniupnpc=no \
--with-incompatible-bdb \
CXXFLAGS="${CXXFLAGS:--O0 -g0 --param ggc-min-expand=1 --param ggc-min-heapsize=32768}"
;;
wallet)
exec "$ROOT/contrib/build-linux-wallet.sh"
;;
*)
echo "Unknown MODE: $MODE" >&2
echo "Use MODE=daemon or MODE=wallet." >&2
exit 2
;;
esac
make -j"$JOBS"
echo "Build complete."
echo "Linux $MODE build complete."