Merge pull request #314 from prometheus/fix/binary/shell-script

Fix library path determiners.
pull/311/merge
Matt T. Proud 12 years ago
commit dad306cf04

@ -17,11 +17,12 @@ readonly binary="${0}"
readonly binary_path="$(readlink -f ${binary})"
readonly binary_directory="$(dirname ${binary_path})"
if [ -n "${LD_LIBRARY_PATH}" ]; then
export LD_LIBRARY_PATH="${binary_directory}/lib:${LD_LIBRARY_PATH}"
fi
readonly platform=$(uname | tr '[:upper:]' '[:lower:]')
export LD_LIBRARY_PATH="${binary_directory}/lib:${LD_LIBRARY_PATH}"
if [ -n "${DYLD_LIBRARY_PATH}" ]; then
if [[ "${platform}" == "darwin" ]]; then
export DYLD_LIBRARY_PATH="${binary_directory}/lib:${DYLD_LIBRARY_PATH}"
fi

Loading…
Cancel
Save