7192916: Hotspot development launcher should use DYLD_LIBRARY_PATH on OS X
Reviewed-by: dholmes, dsamersoff, nloodin
This commit is contained in:
parent
9d85b8e187
commit
6d8fa095b3
@ -114,22 +114,34 @@ fi
|
|||||||
# any.
|
# any.
|
||||||
JRE=$JDK/jre
|
JRE=$JDK/jre
|
||||||
JAVA_HOME=$JDK
|
JAVA_HOME=$JDK
|
||||||
ARCH=@@LIBARCH@@
|
export JAVA_HOME
|
||||||
|
|
||||||
|
ARCH=@@LIBARCH@@
|
||||||
SBP=${MYDIR}:${JRE}/lib/${ARCH}
|
SBP=${MYDIR}:${JRE}/lib/${ARCH}
|
||||||
|
|
||||||
# Set up a suitable LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
if [ -z "$LD_LIBRARY_PATH" ]
|
# Set up a suitable LD_LIBRARY_PATH or DYLD_LIBRARY_PATH
|
||||||
|
OS=`uname -s`
|
||||||
|
if [ "${OS}" = "Darwin" ]
|
||||||
then
|
then
|
||||||
LD_LIBRARY_PATH="$SBP"
|
if [ -z "$DYLD_LIBRARY_PATH" ]
|
||||||
|
then
|
||||||
|
DYLD_LIBRARY_PATH="$SBP"
|
||||||
|
else
|
||||||
|
DYLD_LIBRARY_PATH="$SBP:$DYLD_LIBRARY_PATH"
|
||||||
|
fi
|
||||||
|
export DYLD_LIBRARY_PATH
|
||||||
else
|
else
|
||||||
|
# not 'Darwin'
|
||||||
|
if [ -z "$LD_LIBRARY_PATH" ]
|
||||||
|
then
|
||||||
|
LD_LIBRARY_PATH="$SBP"
|
||||||
|
else
|
||||||
LD_LIBRARY_PATH="$SBP:$LD_LIBRARY_PATH"
|
LD_LIBRARY_PATH="$SBP:$LD_LIBRARY_PATH"
|
||||||
|
fi
|
||||||
|
export LD_LIBRARY_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export LD_LIBRARY_PATH
|
|
||||||
export JAVA_HOME
|
|
||||||
|
|
||||||
JPARMS="$@ $JAVA_ARGS";
|
JPARMS="$@ $JAVA_ARGS";
|
||||||
|
|
||||||
# Locate the gamma development launcher
|
# Locate the gamma development launcher
|
||||||
|
Loading…
Reference in New Issue
Block a user