141f1400dc
fix bech32 prefix bumped version improve trie read RAM use, fix a few compiler warnings open segwit window until Jan 2020 work around Windows ICU build issue upped the soft fork thresh length to a week open testnet soft forks window clarifying segwit to be manually enabled same for testnet
40 lines
1.1 KiB
Bash
Executable file
40 lines
1.1 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
if which dpkg-query >/dev/null; then
|
|
if dpkg-query -W g++-mingw-w64-x86-64 mingw-w64-x86-64-dev \
|
|
build-essential libtool autotools-dev automake pkg-config \
|
|
bsdmainutils curl ca-certificates; then
|
|
echo "All dependencies satisfied."
|
|
else
|
|
echo "Missing dependencies detected. Exiting..."
|
|
exit 1
|
|
fi
|
|
#sudo update-alternatives --config x86_64-w64-mingw32-g++ # you have to select posix
|
|
fi
|
|
|
|
if which ccache >/dev/null; then
|
|
echo "ccache config:"
|
|
ccache -ps
|
|
fi
|
|
|
|
export CXXFLAGS="${CXXFLAGS:--O2 -frecord-gcc-switches}"
|
|
echo "CXXFLAGS set to $CXXFLAGS"
|
|
|
|
pushd depends
|
|
make -j`getconf _NPROCESSORS_ONLN` HOST=x86_64-w64-mingw32 NO_QT=1 V=1
|
|
popd
|
|
|
|
./autogen.sh
|
|
DEPS_DIR=`pwd`/depends/x86_64-w64-mingw32
|
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --prefix=/ --without-gui --with-icu="$DEPS_DIR" --enable-static --disable-shared
|
|
make -j`getconf _NPROCESSORS_ONLN`
|
|
x86_64-w64-mingw32-strip src/lbrycrdd.exe src/lbrycrd-cli.exe src/lbrycrd-tx.exe
|
|
|
|
if which ccache >/dev/null; then
|
|
echo "ccache stats:"
|
|
ccache -s
|
|
fi
|
|
|
|
echo "Windows 64bit build is complete"
|