git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1302721 13f79535-47bb-0310-9956-ffa450edef68
@@ -1,5 +1,10 @@
Hadoop Change Log
+ HADOOP-6924. Adds a directory to the list of directories to search for the libjvm.so file.
+ The new directory is found by running a 'find' command and the first output is taken.
+ This was done to handle the build of Hadoop with IBM's JDK. (Stephen Watt,
+ Guillermo Cabrera and ddas)
+
Release 1.0.2 - 2012.03.18
NEW FEATURES
@@ -19777,6 +19777,8 @@ JNI_LDFLAGS=""
if test $JAVA_HOME != ""
then
JNI_LDFLAGS="-L$JAVA_HOME/jre/lib/$OS_ARCH/server"
+ JVMSOPATH=`find $JAVA_HOME/jre/ -name libjvm.so | head -n 1`
+ JNI_LDFLAGS="$JNI_LDFLAGS -L`dirname $JVMSOPATH`"
fi
ldflags_bak=$LDFLAGS
LDFLAGS="$LDFLAGS $JNI_LDFLAGS"
@@ -55,6 +55,8 @@ JNI_LDFLAGS=""