Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not include libboost-context in the jar
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 22 Jan 2016 15:28:28 +0000 (16:28 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 22 Jan 2016 15:28:32 +0000 (16:28 +0100)
- This is difficult because we may need to include libboost-chrono or
  other libraries.
- This breaks the tests on some systems because of messages similar to
  | OpenJDK Client VM warning: You have loaded library
  | /tmp/simgrid-java7021501405032421762/libboost_context.so which might
  | have disabled stack guard. The VM will try to fix the stack guard now.
- This make it difficult to build the jar on windows while allowing
  parallel build.

So don't include the external libraries in the jar at all. We will
have to generate the native libraries with no dependencies for the
stable releases.

tools/cmake/Java.cmake

index 5004500..613272c 100644 (file)
@@ -135,9 +135,6 @@ if(enable_lib_in_jar)
 
   # Find what to copy
   set(JAVALIBS ${CMAKE_BINARY_DIR}/lib/${LIBSIMGRID_SO} ${CMAKE_BINARY_DIR}/lib/${LIBSIMGRID_JAVA_SO})
-  if (HAVE_BOOST_CONTEXT)
-    set(JAVALIBS ${JAVALIBS} ${Boost_CONTEXT_LIBRARY_RELEASE})
-  endif()
   if(MINGW)
     find_library(WINPTHREAD_DLL
       NAME winpthread winpthread-1