Skip to content

Commit

Permalink
add setenv for arch and freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
stites committed Nov 27, 2017
1 parent c685157 commit f1c42e8
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion setenv
Expand Up @@ -4,4 +4,17 @@
# dylib files in extra-lib-dirs don't get forwarded to ghc
# in some versions of OSX. See https://github.com/commercialhaskell/stack/issues/1826

export DYLD_LIBRARY_PATH=$(PWD)/vendor/build/
case "$(uname)" in
"Darwin")
DYLD_LIBRARY_PATH=$(pwd)/vendor/build/
export DYLD_LIBRARY_PATH
;;
"Linux"|"FreeBSD")
LD_LIBRARY_PATH=$(pwd)/vendor/build/
export LD_LIBRARY_PATH
;;
*)
echo "OS doesn't have known environment variable hacks to set"
;;
esac

0 comments on commit f1c42e8

Please sign in to comment.