2019-06-17 09:49:41 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
if which dpkg-query >/dev/null; then
|
|
|
|
if dpkg-query -W libtool autotools-dev automake pkg-config bsdmainutils curl ca-certificates; then
|
|
|
|
echo "All dependencies satisfied."
|
|
|
|
else
|
|
|
|
echo "Missing dependencies detected. Exiting..."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if which ccache >/dev/null; then
|
|
|
|
echo "ccache config:"
|
|
|
|
ccache -ps
|
|
|
|
fi
|
|
|
|
|
2019-07-19 10:39:59 -06:00
|
|
|
export CXXFLAGS="${CXXFLAGS:--frecord-gcc-switches}"
|
2019-07-18 14:35:18 -06:00
|
|
|
echo "CXXFLAGS set to $CXXFLAGS"
|
|
|
|
|
2019-06-17 09:49:41 -06:00
|
|
|
cd depends
|
2019-10-25 05:00:50 +00:00
|
|
|
make -j$(getconf _NPROCESSORS_ONLN) HOST=x86_64-pc-linux-gnu NO_QT=1 V=1
|
2019-06-17 09:49:41 -06:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
./autogen.sh
|
2019-10-25 05:00:50 +00:00
|
|
|
DEPS_DIR=$(pwd)/depends/x86_64-pc-linux-gnu
|
2019-06-17 09:49:41 -06:00
|
|
|
CONFIG_SITE=${DEPS_DIR}/share/config.site ./configure --enable-static --disable-shared --with-pic --without-gui
|
2019-10-25 05:00:50 +00:00
|
|
|
make -j$(getconf _NPROCESSORS_ONLN)
|
2019-06-17 09:49:41 -06:00
|
|
|
strip src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx
|
|
|
|
|
|
|
|
if which ccache >/dev/null; then
|
|
|
|
echo "ccache stats:"
|
|
|
|
ccache -s
|
|
|
|
fi
|
|
|
|
|
2019-10-25 05:00:50 +00:00
|
|
|
echo "Linux 64bit build is complete"
|