incubator-bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bm...@apache.org
Subject svn commit: r1299066 - /incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build
Date Fri, 09 Mar 2012 21:41:49 GMT
Author: bmahe
Date: Fri Mar  9 21:41:49 2012
New Revision: 1299066

URL: http://svn.apache.org/viewvc?rev=1299066&view=rev
Log:
BIGTOP-431. Need to add libjvm.so to LDFLAGS of Apache Hadoop build

Modified:
    incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build

Modified: incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build
URL: http://svn.apache.org/viewvc/incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build?rev=1299066&r1=1299065&r2=1299066&view=diff
==============================================================================
--- incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build (original)
+++ incubator/bigtop/trunk/bigtop-packages/src/common/hadoop/do-component-build Fri Mar  9
21:41:49 2012
@@ -36,11 +36,20 @@ if [ -n `which autoconf` ]; then
 	fi
 fi
 
+pushd src/native
+  autoreconf -if
+popd
 
+LIBJVMS=`find ${JAVA_HOME}/jre/lib/ -name "libjvm.so" -exec dirname {} \;`
+LIBRARIES="-lcrypto -lm "
+for jvm in $LIBJVMS;
+do
+  LIBRARIES="${LIBRARIES} -L${jvm}"
+done
 
 # FIXME: the LDFLAGS="-lcrypto" is a workaround for MAPREDUCE-2127
 # FIXME: the FUSE_HOME="..." and LDFLAGS="-lm" is a workaround for HADOOP-3344
-LDFLAGS="-lcrypto -lm" FUSE_HOME=`pwd`/build/c++/${HADOOP_ARCH} ant \
+LDFLAGS="$LIBRARIES" FUSE_HOME=`pwd`/build/c++/${HADOOP_ARCH} ant \
   -Djava5.home=$JAVA5_HOME \
   -Dforrest.home=$FORREST_HOME \
   -Dversion=${HADOOP_VERSION} \



Mime
View raw message