Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2190 from kframework/hotfix/library-path-el-capitan
Browse files Browse the repository at this point in the history
Fix library path for El Capitan
  • Loading branch information
cos authored Jul 28, 2016
2 parents dccb840 + 53f321b commit de93e7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion k-distribution/src/main/scripts/lib/k
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
if [ $? -eq 0 ]; then
$NG org.kframework.main.Main "$@"
else
java -Djava.awt.headless=true $K_OPTS -ea -cp "$(dirname "$0")/java/*" org.kframework.main.Main "$@"
java -Djava.awt.headless=true -Djava.library.path="$THE_LIBRARY_PATH" $K_OPTS -ea -cp "$(dirname "$0")/java/*" org.kframework.main.Main "$@"
fi
else
exit 1
Expand Down
2 changes: 2 additions & 0 deletions k-distribution/src/main/scripts/lib/setenv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ K_LIB_DIR="$(cd $(dirname "$0")/../lib; pwd)"
if [ `uname` = 'Darwin' ]; then
export PATH="$K_LIB_DIR/native/osx":$PATH
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"$K_LIB_DIR/native/osx"
export THE_LIBRARY_PATH="$DYLD_LIBRARY_PATH"
elif [[ `uname` == *MINGW* || `uname` == *MSYS* || `uname` == *CYGWIN* ]]; then
export PATH="$K_LIB_DIR/native/windows":"$K_LIB_DIR/native/windows$ARCH":"$K_LIB_DIR/native/$ARCH":$PATH
else
Expand All @@ -17,6 +18,7 @@ else
fi
export PATH="$K_LIB_DIR/native/linux":"$K_LIB_DIR/native/linux$ARCH":$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"$K_LIB_DIR/native/linux$ARCH"
export THE_LIBRARY_PATH="$LD_LIBRARY_PATH"
fi

export CYGWIN=nodosfilewarning

0 comments on commit de93e7a

Please sign in to comment.