Skip to content

Commit

Permalink
Add hack/libs to DYLD_LIBRARY_PATH on OS X
Browse files Browse the repository at this point in the history
Fixes an issue in #649
  • Loading branch information
lethosor committed Aug 25, 2015
1 parent 81ef17d commit 00d39e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package/darwin/dfhack
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ cd "${PWD}"
#thanks to Iriel for figuring this out
OSREV=`uname -r | cut -d. -f1`
if [ "$OSREV" -ge 11 ] ; then
export DYLD_LIBRARY_PATH=${PWD}/hack:${PWD}/libs
export DYLD_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs
export DYLD_LIBRARY_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
export DYLD_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
else
export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/hack:${PWD}/libs
export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs
export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/hack:${PWD}/libs:${PWD}/hack/libs
fi

old_tty_settings=$(stty -g)
Expand Down

0 comments on commit 00d39e2

Please sign in to comment.