summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun/dcpomatic7
1 files changed, 6 insertions, 1 deletions
diff --git a/run/dcpomatic b/run/dcpomatic
index f3f1b84ff..fff9783e5 100755
--- a/run/dcpomatic
+++ b/run/dcpomatic
@@ -1,9 +1,14 @@
#!/bin/bash
export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH
+export DYLD_LIBRARY_PATH=/Users/carl/Environments/osx/64/lib:build/src/lib:build/src/wx:build/src/asdcplib/src:$DYLD_LIBRARY_PATH
if [ "$1" == "--debug" ]; then
shift
- gdb --args build/src/tools/dcpomatic $*
+ if [ `which gdb` ]; then
+ gdb --args build/src/tools/dcpomatic $*
+ else
+ lldb build/src/tools/dcpomatic $*
+ fi
elif [ "$1" == "--valgrind" ]; then
shift
valgrind --tool="memcheck" build/src/tools/dcpomatic $*