Skip to content

Commit

Permalink
Update guild-deploy.sh
Browse files Browse the repository at this point in the history
Moved LD_LIBRARY_PATH check to the front of the libsecp build, so it is applied on first run of the script.
  • Loading branch information
Straightpool committed May 30, 2023
1 parent 505bb2d commit 146a1a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/cnode-helper-scripts/guild-deploy.sh
Expand Up @@ -277,6 +277,10 @@ build_dependencies() {
fi
# Cannot verify the version and availability of libsecp256k1 package built previously, hence have to re-install each time
echo -e "\n[Re]-Install libsecp256k1 ..."
if ! grep -q "/usr/local/lib:\$LD_LIBRARY_PATH" "${HOME}"/.bashrc; then
echo -e "\nexport LD_LIBRARY_PATH=/usr/local/lib:\$LD_LIBRARY_PATH" >> "${HOME}"/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
fi
mkdir -p "${HOME}"/git > /dev/null 2>&1 # To hold git repositories that will be used for building binaries
pushd "${HOME}"/git >/dev/null || err_exit
[[ ! -d "./secp256k1" ]] && git clone https://github.com/bitcoin-core/secp256k1 &>/dev/null
Expand All @@ -287,10 +291,6 @@ build_dependencies() {
make > make.log 2>&1 || err_exit " Could not complete \"make\" for libsecp256k1 package, please try to run it manually to diagnose!"
make check >>make.log 2>&1
$sudo make install > install.log 2>&1
if ! grep -q "/usr/local/lib:\$LD_LIBRARY_PATH" "${HOME}"/.bashrc; then
echo -e "\nexport LD_LIBRARY_PATH=/usr/local/lib:\$LD_LIBRARY_PATH" >> "${HOME}"/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
fi
}

# Build fork of libsodium
Expand Down

0 comments on commit 146a1a3

Please sign in to comment.