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 bb204ded5aee36760de7df0ea81b726a2c14cccf..b611406ef656374fefbe8a62955435b745e67d4e 100755 (executable)
--- a/run.sh
+++ b/run.sh
@@ -15,6 +15,8 @@ BIN=./test/userprog.o
 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