提交 f32e52c6 编写于 作者: D dcubed

Merge

...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# inside Emacs". # inside Emacs".
# #
# If the first parameter is "-dbx", HotSpot will be launched inside dbx. # If the first parameter is "-dbx", HotSpot will be launched inside dbx.
# #
# If the first parameter is "-valgrind", HotSpot will be launched # If the first parameter is "-valgrind", HotSpot will be launched
# inside Valgrind (http://valgrind.kde.org) using the Memcheck skin, # inside Valgrind (http://valgrind.kde.org) using the Memcheck skin,
# and with memory leak detection enabled. This currently (2005jan19) # and with memory leak detection enabled. This currently (2005jan19)
...@@ -45,19 +45,19 @@ ...@@ -45,19 +45,19 @@
# This is the name of the gdb binary to use # This is the name of the gdb binary to use
if [ ! "$GDB" ] if [ ! "$GDB" ]
then then
GDB=gdb GDB=gdb
fi fi
# This is the name of the gdb binary to use # This is the name of the gdb binary to use
if [ ! "$DBX" ] if [ ! "$DBX" ]
then then
DBX=dbx DBX=dbx
fi fi
# This is the name of the Valgrind binary to use # This is the name of the Valgrind binary to use
if [ ! "$VALGRIND" ] if [ ! "$VALGRIND" ]
then then
VALGRIND=valgrind VALGRIND=valgrind
fi fi
...@@ -98,7 +98,7 @@ esac ...@@ -98,7 +98,7 @@ esac
JDK= JDK=
if [ "${ALT_JAVA_HOME}" = "" ]; then if [ "${ALT_JAVA_HOME}" = "" ]; then
. ${MYDIR}/jdkpath.sh . ${MYDIR}/jdkpath.sh
else else
JDK=${ALT_JAVA_HOME%%/jre}; JDK=${ALT_JAVA_HOME%%/jre};
fi fi
...@@ -114,22 +114,34 @@ fi ...@@ -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
LD_LIBRARY_PATH="$SBP:$LD_LIBRARY_PATH" # not 'Darwin'
if [ -z "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH="$SBP"
else
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册