Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

if DYLD_FALLBACK_LIBRARY_PATH is empty, use default from man dyld #37

Merged
merged 2 commits into from
Aug 12, 2014
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions files/java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# Invoke java with the $DYLD_LIBRARY_PATH set with the homebrew lib dir.
# This allows java to load native libraries installed via homebrew.

if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ]; then
export DYLD_FALLBACK_LIBRARY_PATH="$HOME/lib:/usr/local/lib:/lib:/usr/lib"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need to export here

fi

export DYLD_FALLBACK_LIBRARY_PATH="$BOXEN_HOME/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH"

if [ -x /usr/libexec/java_home ]; then
Expand Down