summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-03-26 20:29:49 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-21 23:18:23 +0200
commit55f1927db0565c74ff7c121645ec397c07f63d51 (patch)
tree91dd6875cc99a353c671244c04a5eb865ae05fe5
parent45315c3a096fe49ffa50ded1aeb94394f71e3006 (diff)
Add "build" environment lib to local run script.
-rw-r--r--run/environment3
1 files changed, 2 insertions, 1 deletions
diff --git a/run/environment b/run/environment
index a0a2a0782..ddb642eed 100644
--- a/run/environment
+++ b/run/environment
@@ -1,6 +1,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
build=$DIR/../build
-export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
+env=$DIR/../../..
+export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$env/lib:/usr/local/lib64:/usr/local/lib:$LD_LIBRARY_PATH
if [[ $(readlink -f $DIR/..) =~ (.*build/[^/]*) ]]; then
export LD_LIBRARY_PATH=${BASH_REMATCH[1]}/lib:$LD_LIBRARY_PATH
fi