summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-04 12:23:37 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-04 12:23:37 +0100
commit6bb921077db94622368a4fda26a3dbf4c837e356 (patch)
tree441db4578cb00e45bdbca9d5e8a051964aff7b06
parent12cbc5c8076775aae280f6609576e1400f939005 (diff)
Add DYLD_LIBRARY_PATH to run/dcpomatic
-rwxr-xr-xrun/dcpomatic8
1 files changed, 8 insertions, 0 deletions
diff --git a/run/dcpomatic b/run/dcpomatic
index 429139dac..38de6a670 100755
--- a/run/dcpomatic
+++ b/run/dcpomatic
@@ -4,6 +4,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
binary=$build/src/tools/dcpomatic2
+if [[ "$(uname -m)" == arm64 ]]; then
+ env=arm64/11.0
+else
+ env=x86_64/10.10
+fi
+
+export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib
+
if [ "$1" == "--debug" ]; then
shift
gdb --args $binary $*