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

Commit f92a19c

Browse files
committed
if DYLD_FALLBACK_LIBRARY_PATH is empty, use default from man dyld
1 parent 3a2a773 commit f92a19c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

files/java.sh

+4
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+
export 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)