You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/04/24 17:53:01 UTC
git commit: Cleanups in configure.ac for libjvm detection.
Repository: mesos
Updated Branches:
refs/heads/master 725ffdb5a -> 3f51b897c
Cleanups in configure.ac for libjvm detection.
Late requests for cleanups in https://reviews.apache.org/r/19487.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3f51b897
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/3f51b897
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/3f51b897
Branch: refs/heads/master
Commit: 3f51b897ca477aab05b5c65713d0db1a051ba293
Parents: 725ffdb
Author: Benjamin Hindman <be...@gmail.com>
Authored: Thu Apr 24 08:51:16 2014 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Thu Apr 24 08:51:16 2014 -0700
----------------------------------------------------------------------
configure.ac | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/3f51b897/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index c964452..570eb4b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,7 +281,8 @@ AC_CHECK_LIB(unwind, backtrace, LIBS="$LIBS -lunwind")
# sure variable dependencies are handled appropriately).
# A helper for checking whether we can compile and link using JNI with
-# the current JAVA_CPPFLAGS.
+# the current JAVA_CPPFLAGS (and JAVA_TEST_LDFLAGS which we setup
+# ourselves below).
# TRY_LINK_JNI([ACTION-SUCCESS], [ACTION-FAILURE])
AC_DEFUN([TRY_LINK_JNI], [
cat <<__EOF__ >conftest.cpp [
@@ -371,8 +372,8 @@ __EOF__
dir="$JAVA_HOME/jre/lib/$arch/server"
if test -e "$dir"; then
# Note that these are libtool specific flags.
- JAVA_JVM_LIBRARY=$dir/libjvm.so
JAVA_TEST_LDFLAGS="-L$dir -R$dir -Wl,-ljvm"
+ JAVA_JVM_LIBRARY=$dir/libjvm.so
break;
fi
done