setupenv: Add workaround for LD_LIBRARY_PATH on Cygwin

broken
BodgeMaster 2022-10-30 05:56:34 +01:00
parent 5ff8a871ad
commit 57a86cba47
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ function build {
echo "Added aliases and functions."
export PATH="$PROJECT_BASE_DIR/bin:$PROJECT_BASE_DIR/bin/tools:$PROJECT_BASE_DIR/scripts/tools:$PATH"
if uname -s | tr [:upper:] [:lower:] | grep cygwin >/dev/null; then
echo "Adding cygwin workaound for library path."
export PATH="$PROJECT_BASE_DIR/lib:$PATH"
fi
echo "PATH is $PATH"
if [ -z "$LD_LIBRARY_PATH" ]; then