run.sh: set Mac OSX DYLD_LIBRARY_PATH
authorBrian Norris <banorris@uci.edu>
Tue, 13 Aug 2013 22:34:22 +0000 (15:34 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 13 Aug 2013 22:34:22 +0000 (15:34 -0700)
DYLD_LIBRARY_PATH is the Mac OSX equivalent of Unix LD_LIBRARY_PATH.

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