Added function to build dependencies.
This commit is contained in:
parent
c53b47890b
commit
245422a830
@ -5,6 +5,16 @@ options=`cat ${root_dir}/bin/config_options.sh`
|
|||||||
|
|
||||||
os_dir=$(./platform/os.sh osdir)
|
os_dir=$(./platform/os.sh osdir)
|
||||||
|
|
||||||
|
build_dependencies () {
|
||||||
|
if [ -d "${btc_dir}" ]; then
|
||||||
|
pushd "${btc_dir}"/depends
|
||||||
|
host=`uname -m`-`uname -a | awk '{print tolower($1)}'`
|
||||||
|
echo "using host for dependencies: ${host}"
|
||||||
|
make HOST=${host} NO_QT=1 NO_WALLET=1 NO_UPNP=1 #host is arch-os, e.g. x86_64-linux
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
get_patch_file () {
|
get_patch_file () {
|
||||||
if test -e "${root_dir/PATCH_VERSION}"; then
|
if test -e "${root_dir/PATCH_VERSION}"; then
|
||||||
tag=`cat "${root_dir}/PATCH_VERSION" | xargs`
|
tag=`cat "${root_dir}/PATCH_VERSION" | xargs`
|
||||||
@ -87,7 +97,7 @@ if [ "${only_make}" = false ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
build_dependencies
|
||||||
echo './autogen.sh'
|
echo './autogen.sh'
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
full_options="${options}${os_dir}"
|
full_options="${options}${os_dir}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user