Add DYLD_LIBRARY_PATH to dcpomatic_disk.
authorCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:25:41 +0000 (12:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 4 Feb 2024 11:25:41 +0000 (12:25 +0100)
run/dcpomatic_disk

index 8c13183b61ce8af1c354abbd7e5ede38d197a176..ff5d8e7e51692c774b5e9d3479865d6ddd8f19e3 100755 (executable)
@@ -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 $*