summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-04 12:25:41 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-04 12:25:41 +0100
commit32362a0c6e4657f6b2990bc638c6d13dda5fa532 (patch)
tree655e40ff39f3f8d2bc9245ef83aaec6585123ec5
parent0194a1d4f3fe080c59d5150b78448af81a621fdf (diff)
Add DYLD_LIBRARY_PATH to dcpomatic_disk.
-rwxr-xr-xrun/dcpomatic_disk8
1 files changed, 8 insertions, 0 deletions
diff --git a/run/dcpomatic_disk b/run/dcpomatic_disk
index 8c13183b6..ff5d8e7e5 100755
--- a/run/dcpomatic_disk
+++ b/run/dcpomatic_disk
@@ -3,6 +3,14 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
+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 build/src/tools/dcpomatic2_disk $*