Don't use the hard-coded name libmpi.so -- instead, use
libmpi.<OPAL_DYN_LIB_SUFFIX>, where OPAL_DYN_LIB_SUFFIX was determined by configure. Thanks to Ömer Demirel for reporting the issue. Refs trac:3905. This commit was SVN r29676. The following Trac tickets were found above: Ticket 3905 --> https://svn.open-mpi.org/trac/ompi/ticket/3905
Этот коммит содержится в:
родитель
98ff91cfeb
Коммит
684dc2f849
@ -12,7 +12,7 @@
|
|||||||
if OMPI_WANT_JAVA_BINDINGS
|
if OMPI_WANT_JAVA_BINDINGS
|
||||||
|
|
||||||
# Get the include files that were generated from the .java source files
|
# Get the include files that were generated from the .java source files
|
||||||
AM_CPPFLAGS = -I$(top_builddir)/ompi/mpi/java/java $(OPAL_JDK_CPPFLAGS)
|
AM_CPPFLAGS = -I$(top_builddir)/ompi/mpi/java/java $(OPAL_JDK_CPPFLAGS) -DOPAL_DYN_LIB_SUFFIX=\"$(OPAL_DYN_LIB_SUFFIX)\"
|
||||||
|
|
||||||
headers = \
|
headers = \
|
||||||
mpiJava.h
|
mpiJava.h
|
||||||
|
@ -89,7 +89,8 @@ static void *mpilibhandle=NULL;
|
|||||||
*/
|
*/
|
||||||
JNIEXPORT jboolean JNICALL Java_mpi_MPI_loadGlobalLibraries(JNIEnv *env, jclass obj)
|
JNIEXPORT jboolean JNICALL Java_mpi_MPI_loadGlobalLibraries(JNIEnv *env, jclass obj)
|
||||||
{
|
{
|
||||||
if (NULL == (mpilibhandle = dlopen("libmpi.so", RTLD_NOW | RTLD_GLOBAL))) {
|
if (NULL == (mpilibhandle = dlopen("libmpi." OPAL_DYN_LIB_SUFFIX,
|
||||||
|
RTLD_NOW | RTLD_GLOBAL))) {
|
||||||
return JNI_FALSE;
|
return JNI_FALSE;
|
||||||
}
|
}
|
||||||
return JNI_TRUE;
|
return JNI_TRUE;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user