From 6e0798f1bc82e04ff7d5563448a51de54c46c99b Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 6 Dec 2014 16:43:53 -0800 Subject: [PATCH] add build-libbitcoind.sh. --- build-libbitcoind.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 build-libbitcoind.sh diff --git a/build-libbitcoind.sh b/build-libbitcoind.sh new file mode 100755 index 00000000..cf081fe1 --- /dev/null +++ b/build-libbitcoind.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +btc_dir=$(test -n "$1" && echo "$1" || echo "${HOME}/bitcoin") +os_dir=$(dirname "$(./platform/os.sh)") +shift + +./patch-bitcoin.sh "$btc_dir" || exit 1 + +cd "$btc_dir" || exit 1 + +./autogen.sh || exit 1 +./configure --enable-daemonlib --with-incompatible-bdb "$@" || exit 1 +make || exit 1 + +cp src/libbitcoind.so "${os_dir}/libbitcoind.so" || exit 1 + +cd "$os_dir" || exit 1 + +rm -f xaa xab + +split libbitcoind.so -n 2 || exit 1 + +echo 'Build finished successfully.' +exit 0