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

Commit a6b24ff

Browse files
committed
Merge pull request #37 from nonrational/fix-default-dyld-behavior
Fix blank DYLD_FALLBACK_LIBRARY_PATH behavior
2 parents 41e9164 + e422f59 commit a6b24ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/java.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# Invoke java with the $DYLD_LIBRARY_PATH set with the homebrew lib dir.
44
# This allows java to load native libraries installed via homebrew.
55

6+
if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ]; then
7+
DYLD_FALLBACK_LIBRARY_PATH="$HOME/lib:/usr/local/lib:/lib:/usr/lib"
8+
fi
9+
610
export DYLD_FALLBACK_LIBRARY_PATH="$BOXEN_HOME/homebrew/lib:$DYLD_FALLBACK_LIBRARY_PATH"
711

812
if [ -x /usr/libexec/java_home ]; then

0 commit comments

Comments
 (0)