Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add DYLD_LIBRARY_PATH tweaks for osx.

  • Loading branch information...
commit 9b7be32e5081b3221d303e40378e603448101df7 1 parent c0111a6
@rafrombrc rafrombrc authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 bin/activate
View
16 bin/activate
@@ -37,6 +37,14 @@ deactivate () {
unset LD_LIBRARY_PATH
fi
+ if [ -n "$_OLD_DYLD_LIBRARY_PATH" ] ; then
+ DYLD_LIBRARY_PATH="$_OLD_DYLD_LIBRARY_PATH"
+ export DYLD_LIBRARY_PATH
+ unset _OLD_DYLD_LIBRARY_PATH
+ else
+ unset DYLD_LIBRARY_PATH
+ fi
+
if [ ! "$1" = "nondestructive" ] ; then
# Self destruct!
unset -f deactivate
@@ -73,6 +81,14 @@ if [ -z "$GOENV_DISABLE_PROMPT" ] ; then
export PS1
fi
+if [ -n "$DYLD_LIBRARY_PATH" ] ; then
+ _OLD_DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH"
+ DYLD_LIBRARY_PATH="$GOPATH/bin:$DYLD_LIBRARY_PATH"
+else
+ DYLD_LIBRARY_PATH="$GOPATH/bin"
+fi
+export DYLD_LIBRARY_PATH
+
if [ -n "$LD_LIBRARY_PATH" ] ; then
_OLD_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"
LD_LIBRARY_PATH="$GOPATH/bin:$LD_LIBRARY_PATH"
Please sign in to comment.
Something went wrong with that request. Please try again.