From 57a86cba47bd28ddf3f4949314d5c40ca070a76c Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Sun, 30 Oct 2022 05:56:34 +0100 Subject: [PATCH] setupenv: Add workaround for LD_LIBRARY_PATH on Cygwin --- setupenv.bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setupenv.bashrc b/setupenv.bashrc index a7718e3..03faf7d 100644 --- a/setupenv.bashrc +++ b/setupenv.bashrc @@ -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