run.sh: set Mac OSX DYLD_LIBRARY_PATH
[c11tester.git] / run.sh
diff --git a/run.sh b/run.sh
index bb204de..b611406 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -15,6 +15,8 @@ BIN=./test/userprog.o
 PREFIX=
 
 export LD_LIBRARY_PATH=.
 PREFIX=
 
 export LD_LIBRARY_PATH=.
+# For Mac OSX
+export DYLD_LIBRARY_PATH=.
 
 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
 [ $# -gt 0 ] && [ -e "$1" ] && BIN="$1" && shift
 
 [ $# -gt 0 ] && [ "$1" = "gdb" ] && PREFIX=gdb && shift
 [ $# -gt 0 ] && [ -e "$1" ] && BIN="$1" && shift