diff --git a/README b/README index b841438b5b9..9afbeb94db8 100644 --- a/README +++ b/README @@ -12,7 +12,7 @@ Copyright (c) 2006-2016 Cisco Systems, Inc. All rights reserved. Copyright (c) 2006-2011 Mellanox Technologies. All rights reserved. Copyright (c) 2006-2012 Oracle and/or its affiliates. All rights reserved. Copyright (c) 2007 Myricom, Inc. All rights reserved. -Copyright (c) 2008 IBM Corporation. All rights reserved. +Copyright (c) 2008-2016 IBM Corporation. All rights reserved. Copyright (c) 2010 Oak Ridge National Labs. All rights reserved. Copyright (c) 2011 University of Houston. All rights reserved. Copyright (c) 2013-2015 Intel, Inc. All rights reserved @@ -819,6 +819,14 @@ INSTALLATION OPTIONS command line that are not in FILE are also used. Options on the command line and in FILE are replaced by what is in FILE. +--with-libmpi-name=STRING + Replace libmpi.* and libmpi_FOO.* (where FOO is one of the fortran + supporting libraries installed in lib) with libSTRING.* and + libSTRING_FOO.*. This is provided as a convenience mechanism for + third-party packagers of Open MPI that might want to rename these + libraries for their own purposes. This option is *not* intended for + typical users of Open MPI. + NETWORKING SUPPORT / OPTIONS --with-fca= diff --git a/config/ompi_setup_mpi_fortran.m4 b/config/ompi_setup_mpi_fortran.m4 index ed2ede54027..d413bc177ae 100644 --- a/config/ompi_setup_mpi_fortran.m4 +++ b/config/ompi_setup_mpi_fortran.m4 @@ -17,6 +17,7 @@ dnl reserved. dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. dnl Copyright (c) 2014-2015 Research Organization for Information Science dnl and Technology (RIST). All rights reserved. +dnl Copyright (c) 2016 IBM Corporation. All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow @@ -340,9 +341,9 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[ [OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS AS_IF([test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1], [OMPI_FORTRAN_USEMPI_DIR=mpi/fortran/use-mpi-ignore-tkr - OMPI_FORTRAN_USEMPI_LIB=-lmpi_usempi_ignore_tkr], + OMPI_FORTRAN_USEMPI_LIB=-l${with_libmpi_name}_usempi_ignore_tkr], [OMPI_FORTRAN_USEMPI_DIR=mpi/fortran/use-mpi-tkr - OMPI_FORTRAN_USEMPI_LIB=-lmpi_usempi]) + OMPI_FORTRAN_USEMPI_LIB=-l${with_libmpi_name}_usempi]) ]) OMPI_FORTRAN_HAVE_ISO_C_BINDING=0 @@ -574,7 +575,7 @@ end type test_mpi_handle], AC_MSG_CHECKING([if building Fortran 'use mpi_f08' bindings]) AS_IF([test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS], - [OMPI_FORTRAN_USEMPIF08_LIB=-lmpi_usempif08 + [OMPI_FORTRAN_USEMPIF08_LIB=-l${with_libmpi_name}_usempif08 AC_MSG_RESULT([yes])], [OMPI_TRY_FORTRAN_BINDIGS=$OMPI_FORTRAN_USEMPI_BINDINGS AC_MSG_RESULT([no])]) diff --git a/config/opal_set_lib_prefix.m4 b/config/opal_set_lib_prefix.m4 index b8a0dfa85fa..1aec310294f 100644 --- a/config/opal_set_lib_prefix.m4 +++ b/config/opal_set_lib_prefix.m4 @@ -1,6 +1,7 @@ # -*- shell-script -*- # # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -38,3 +39,24 @@ AC_DEFUN([ORTE_SET_LIB_PREFIX],[ orte_lib_prefix_set=yes AC_SUBST(ORTE_LIB_PREFIX) ])dnl + +# +# Rename 'libmpi' and 'libmpi_FOO' with a configure time option. +# +AC_DEFUN([OMPI_SET_LIB_NAME],[ + AC_MSG_CHECKING([if want custom libmpi(_FOO) name]) + AC_ARG_WITH([libmpi-name], + [AC_HELP_STRING([--with-libmpi-name=STRING], + ["Replace \"libmpi(_FOO)\" with \"libSTRING(_FOO)\" (default=mpi)"])]) + + AS_IF([test "$with_libmpi_name" = "no"], + [AC_MSG_RESULT([Error]) + AC_MSG_WARN([Invalid to specify --without-libmpi-name]) + AC_MSG_ERROR([Cannot continue])]) + + AS_IF([test "$with_libmpi_name" = "" || test "$with_libmpi_name" = "yes"], + [with_libmpi_name="mpi"]) + + AC_MSG_RESULT([$with_libmpi_name]) + AC_SUBST(OMPI_LIBMPI_NAME, $with_libmpi_name) +])dnl diff --git a/config/opal_setup_wrappers.m4 b/config/opal_setup_wrappers.m4 index 4fe3f18b15d..8a1f5837f61 100644 --- a/config/opal_setup_wrappers.m4 +++ b/config/opal_setup_wrappers.m4 @@ -14,6 +14,7 @@ dnl Copyright (c) 2006-2010 Oracle and/or its affiliates. All rights reserved. dnl Copyright (c) 2009-2015 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2015 Research Organization for Information Science dnl and Technology (RIST). All rights reserved. +dnl Copyright (c) 2016 IBM Corporation. All rights reserved. dnl $COPYRIGHT$ dnl dnl Additional copyrights may follow @@ -428,7 +429,7 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_FINAL],[ # support. However, we do want it to fail if there is no C++ # compiler. if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then - OMPI_WRAPPER_CXX_LIB="-lmpi_cxx" + OMPI_WRAPPER_CXX_LIB="-l${with_libmpi_name}_cxx" OMPI_WRAPPER_CXX_REQUIRED_FILE="" elif test "$CXX" = "none"; then OMPI_WRAPPER_CXX_LIB="" diff --git a/configure.ac b/configure.ac index ef5508cd2b8..fbdafda8f10 100644 --- a/configure.ac +++ b/configure.ac @@ -276,6 +276,8 @@ fi OPAL_SET_LIB_PREFIX([]) m4_ifdef([project_orte], [ORTE_SET_LIB_PREFIX([])]) +m4_ifdef([project_ompi], + [OMPI_SET_LIB_NAME([])]) ############################################################################ # Libtool: part one diff --git a/contrib/build-mca-comps-outside-of-tree/configure.ac b/contrib/build-mca-comps-outside-of-tree/configure.ac index 4eb35ba5114..af7ad22f6f5 100644 --- a/contrib/build-mca-comps-outside-of-tree/configure.ac +++ b/contrib/build-mca-comps-outside-of-tree/configure.ac @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -154,7 +155,7 @@ EOF # Open MPI v1.7 libraries LDFLAGS="$LDFLAGS -L$withval/ompi/.libs" # For OMPI v1.7 and later - LIBS="$LIBS -lmpi" + LIBS="$LIBS -l@OMPI_LIBMPI_NAME@" CPPFLAGS="$CPPFLAGS $source_CPPFLAGS" CFLAGS="$CFLAGS $source_CFLAGS" diff --git a/ompi/Makefile.am b/ompi/Makefile.am index 1b7babe23de..ecd9f42e50f 100644 --- a/ompi/Makefile.am +++ b/ompi/Makefile.am @@ -17,6 +17,7 @@ # Copyright (c) 2015 Intel, Inc. All rights reserved. # Copyright (c) 2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -127,9 +128,9 @@ DIST_SUBDIRS = \ # Build the main MPI library -lib_LTLIBRARIES = libmpi.la -libmpi_la_SOURCES = -libmpi_la_LIBADD = \ +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@.la +lib@OMPI_LIBMPI_NAME@_la_SOURCES = +lib@OMPI_LIBMPI_NAME@_la_LIBADD = \ datatype/libdatatype.la \ debuggers/libdebuggers.la \ mpi/c/libmpi_c.la \ @@ -143,13 +144,13 @@ libmpi_la_LIBADD = \ if OMPI_RTE_ORTE -libmpi_la_LIBADD += \ +lib@OMPI_LIBMPI_NAME@_la_LIBADD += \ $(OMPI_TOP_BUILDDIR)/orte/lib@ORTE_LIB_PREFIX@open-rte.la endif -libmpi_la_LIBADD += \ +lib@OMPI_LIBMPI_NAME@_la_LIBADD += \ $(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_PREFIX@open-pal.la -libmpi_la_DEPENDENCIES = $(libmpi_la_LIBADD) -libmpi_la_LDFLAGS = \ +lib@OMPI_LIBMPI_NAME@_la_DEPENDENCIES = $(lib@OMPI_LIBMPI_NAME@_la_LIBADD) +lib@OMPI_LIBMPI_NAME@_la_LDFLAGS = \ -version-info $(libmpi_so_version) \ $(OMPI_LIBMPI_EXTRA_LDFLAGS) @@ -158,7 +159,7 @@ headers = noinst_LTLIBRARIES = include_HEADERS = dist_ompidata_DATA = -libmpi_la_SOURCES += $(headers) +lib@OMPI_LIBMPI_NAME@_la_SOURCES += $(headers) nodist_man_MANS = # Conditionally install the header files diff --git a/ompi/attribute/Makefile.am b/ompi/attribute/Makefile.am index 59e46f9ca95..cb1193deb2f 100644 --- a/ompi/attribute/Makefile.am +++ b/ompi/attribute/Makefile.am @@ -9,6 +9,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -21,6 +22,6 @@ headers += \ attribute/attribute.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ attribute/attribute.c \ attribute/attribute_predefined.c diff --git a/ompi/class/Makefile.am b/ompi/class/Makefile.am index 5fae4957e7b..7784da8ad69 100644 --- a/ompi/class/Makefile.am +++ b/ompi/class/Makefile.am @@ -10,6 +10,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -22,6 +23,6 @@ headers += \ class/ompi_seq_tracker.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ class/ompi_seq_tracker.c diff --git a/ompi/communicator/Makefile.am b/ompi/communicator/Makefile.am index 0cc5175eca9..e7f6dc731ee 100644 --- a/ompi/communicator/Makefile.am +++ b/ompi/communicator/Makefile.am @@ -14,6 +14,7 @@ # reserved. # Copyright (c) 2014 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -28,7 +29,7 @@ headers += \ communicator/comm_request.h \ communicator/comm_helpers.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ communicator/comm_init.c \ communicator/comm.c \ communicator/comm_cid.c \ diff --git a/ompi/debuggers/Makefile.am b/ompi/debuggers/Makefile.am index ffc83353ec1..8dafba9c9b6 100644 --- a/ompi/debuggers/Makefile.am +++ b/ompi/debuggers/Makefile.am @@ -10,6 +10,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2007-2015 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -44,13 +45,13 @@ headers = \ dlopen_test_SOURCES = dlopen_test.c dlopen_test_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la dlopen_test_DEPENDENCIES = $(ompi_predefined_LDADD) predefined_gap_test_SOURCES = predefined_gap_test.c predefined_gap_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) -predefined_gap_test_LDADD = $(top_builddir)/ompi/libmpi.la +predefined_gap_test_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la predefined_gap_test_DEPENDENCIES = $(ompi_predefined_LDADD) libdebuggers_la_SOURCES = \ @@ -78,7 +79,7 @@ libompi_dbg_msgq_la_LDFLAGS = -module -avoid-version # and "make check" will *build* a test in runtime/, but it won't *run* # it. :-( predefined_pad_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) -predefined_pad_test_LDADD = $(top_builddir)/ompi/libmpi.la +predefined_pad_test_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la predefined_pad_test_DEPENDENCIES = $(ompi_predefined_LDADD) # Conditionally install the header files diff --git a/ompi/dpm/Makefile.am b/ompi/dpm/Makefile.am index 43a8bbf14e5..8d66ff7d45d 100644 --- a/ompi/dpm/Makefile.am +++ b/ompi/dpm/Makefile.am @@ -1,6 +1,7 @@ # -*- makefile -*- # # Copyright (c) 2015 Intel, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -13,6 +14,6 @@ headers += \ dpm/dpm.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ dpm/dpm.c diff --git a/ompi/errhandler/Makefile.am b/ompi/errhandler/Makefile.am index f8e4be0671d..6f7264135c2 100644 --- a/ompi/errhandler/Makefile.am +++ b/ompi/errhandler/Makefile.am @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2008 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -28,7 +29,7 @@ headers += \ errhandler/errhandler.h \ errhandler/errhandler_predefined.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ errhandler/errhandler.c \ errhandler/errhandler_invoke.c \ errhandler/errhandler_predefined.c \ diff --git a/ompi/file/Makefile.am b/ompi/file/Makefile.am index 6660c09e6dc..e7d846ddde8 100644 --- a/ompi/file/Makefile.am +++ b/ompi/file/Makefile.am @@ -9,6 +9,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -21,5 +22,5 @@ headers += \ file/file.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ file/file.c diff --git a/ompi/group/Makefile.am b/ompi/group/Makefile.am index 3d3c1308f1b..f92a900da8d 100644 --- a/ompi/group/Makefile.am +++ b/ompi/group/Makefile.am @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2006-2007 University of Houston. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -24,11 +25,11 @@ headers += \ group/group.h \ group/group_dbg.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ group/group.c \ group/group_init.c \ group/group_set_rank.c \ group/group_plist.c \ group/group_sporadic.c \ group/group_strided.c \ - group/group_bitmap.c + group/group_bitmap.c diff --git a/ompi/info/Makefile.am b/ompi/info/Makefile.am index 644930a43b8..e4af170dcf8 100644 --- a/ompi/info/Makefile.am +++ b/ompi/info/Makefile.am @@ -10,6 +10,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -22,5 +23,5 @@ headers += \ info/info.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ info/info.c diff --git a/ompi/message/Makefile.am b/ompi/message/Makefile.am index f1d12959ff9..8fc7c07e4cd 100644 --- a/ompi/message/Makefile.am +++ b/ompi/message/Makefile.am @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2011 Sandia National Laboratories. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -23,5 +24,5 @@ headers += \ message/message.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ message/message.c diff --git a/ompi/mpi/cxx/Makefile.am b/ompi/mpi/cxx/Makefile.am index 5a0efaac9f1..51460068fee 100644 --- a/ompi/mpi/cxx/Makefile.am +++ b/ompi/mpi/cxx/Makefile.am @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2007-2012 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -27,10 +28,10 @@ AM_CPPFLAGS = -DOMPI_BUILDING_CXX_BINDINGS_LIBRARY=1 -DOMPI_SKIP_MPICXX=1 if BUILD_MPI_CXX_BINDINGS -mpi_lib = libmpi_cxx.la +mpi_lib = lib@OMPI_LIBMPI_NAME@_cxx.la -lib_LTLIBRARIES = libmpi_cxx.la -libmpi_cxx_la_SOURCES = \ +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_cxx.la +lib@OMPI_LIBMPI_NAME@_cxx_la_SOURCES = \ mpicxx.cc \ intercepts.cc \ comm.cc \ @@ -38,12 +39,12 @@ libmpi_cxx_la_SOURCES = \ win.cc if OMPI_PROVIDE_MPI_FILE_INTERFACE -libmpi_cxx_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_cxx_la_SOURCES += \ file.cc endif -libmpi_cxx_la_LIBADD = $(top_builddir)/ompi/libmpi.la -libmpi_cxx_la_LDFLAGS = -version-info $(libmpi_cxx_so_version) +lib@OMPI_LIBMPI_NAME@_cxx_la_LIBADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la +lib@OMPI_LIBMPI_NAME@_cxx_la_LDFLAGS = -version-info $(libmpi_cxx_so_version) headers = \ mpicxx.h \ diff --git a/ompi/mpi/fortran/mpif-h/Makefile.am b/ompi/mpi/fortran/mpif-h/Makefile.am index 9f4260033a5..437adcb1228 100644 --- a/ompi/mpi/fortran/mpif-h/Makefile.am +++ b/ompi/mpi/fortran/mpif-h/Makefile.am @@ -16,6 +16,7 @@ # reserved. # Copyright (c) 2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -50,22 +51,22 @@ CLEANFILES = # Note that we invoke some OPAL functions directly in libmpi_mpifh.la, # so we need to link in the OPAL library directly (pulling it in # indirectly via libmpi.la does not work on all platforms). -libmpi_mpifh_la_LIBADD = \ - $(top_builddir)/ompi/libmpi.la \ +lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD = \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(OMPI_MPIEXT_MPIFH_LIBS) \ $(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_PREFIX@open-pal.la -libmpi_mpifh_la_LDFLAGS = -version-info $(libmpi_mpifh_so_version) +lib@OMPI_LIBMPI_NAME@_mpifh_la_LDFLAGS = -version-info $(libmpi_mpifh_so_version) # Are we building the mpif.h bindings at all? if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS # If yes, then we need to build the installable library and the glue # convenience library that will be sucked up into the main libmpi. -lib_LTLIBRARIES += libmpi_mpifh.la +lib_LTLIBRARIES += lib@OMPI_LIBMPI_NAME@_mpifh.la # Do we need to suck in the convenience library from the lower # directory? if BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER -libmpi_mpifh_la_LIBADD += profile/libmpi_mpifh_pmpi.la +lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD += profile/libmpi_mpifh_pmpi.la endif endif @@ -77,7 +78,7 @@ headers = \ # # These files are only built and added to libmpi_mpifh.la in certain cases. # -libmpi_mpifh_la_SOURCES = +lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES = # sizeof_f.f90 is generated based on some results from configure tests. CLEANFILES += sizeof_f.f90 @@ -107,7 +108,7 @@ if BUILD_FORTRAN_SIZEOF noinst_LTLIBRARIES += libmpi_mpifh_sizeof.la # Do not dist this file; it is generated nodist_libmpi_mpifh_sizeof_la_SOURCES = sizeof_f.f90 -libmpi_mpifh_la_LIBADD += libmpi_mpifh_sizeof.la +lib@OMPI_LIBMPI_NAME@_mpifh_la_LIBADD += libmpi_mpifh_sizeof.la endif sizeof_pl = $(top_srcdir)/ompi/mpi/fortran/base/gen-mpi-sizeof.pl @@ -123,7 +124,7 @@ sizeof_f.f90: --complex32=$(OMPI_HAVE_FORTRAN_COMPLEX32) if BUILD_MPI_FORTRAN_MPIFH_BINDINGS_LAYER -libmpi_mpifh_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \ abort_f.c \ add_error_class_f.c \ add_error_code_f.c \ @@ -431,7 +432,7 @@ libmpi_mpifh_la_SOURCES += \ win_flush_local_all_f.c if OMPI_PROVIDE_MPI_FILE_INTERFACE -libmpi_mpifh_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_mpifh_la_SOURCES += \ file_call_errhandler_f.c \ file_close_f.c \ file_create_errhandler_f.c \ diff --git a/ompi/mpi/fortran/use-mpi-f08-desc/Makefile.am b/ompi/mpi/fortran/use-mpi-f08-desc/Makefile.am index c575eccbbe0..9e55e5bd36d 100644 --- a/ompi/mpi/fortran/use-mpi-f08-desc/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-f08-desc/Makefile.am @@ -3,6 +3,7 @@ # Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # # $COPYRIGHT$ # @@ -18,7 +19,7 @@ if OMPI_BUILD_FORTRAN_USEMPIF08_BINDINGS AM_FCFLAGS = -I$(top_builddir)/ompi/include -I$(top_srcdir)/ompi/include \ -I$(top_srcdir) $(FCFLAGS) -lib_LTLIBRARIES = libmpi_usempif08.la +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08.la # # This list is a subset of the full MPI API used for testing Fortran @@ -35,7 +36,7 @@ mpi_api_files = \ type_contiguous_f08.f90 \ type_vector_f08.f90 -libmpi_usempif08_la_SOURCES = \ +lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = \ $(mpi_api_files) \ mpi-f08-types.f90 \ mpi-f08-interfaces.F90 \ diff --git a/ompi/mpi/fortran/use-mpi-f08/Makefile.am b/ompi/mpi/fortran/use-mpi-f08/Makefile.am index 78137e38653..75bbf7600d8 100644 --- a/ompi/mpi/fortran/use-mpi-f08/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-f08/Makefile.am @@ -9,6 +9,7 @@ # reserved. # Copyright (c) 2015-2016 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # # $COPYRIGHT$ # @@ -33,7 +34,7 @@ MOSTLYCLEANFILES = *.mod CLEANFILES += *.i90 -lib_LTLIBRARIES = libmpi_usempif08.la +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempif08.la module_sentinel_file = \ libforce_usempif08_internal_modules_to_be_built.la @@ -793,7 +794,7 @@ pmpi_api_files += \ profile/pregister_datarep_f08.F90 endif -libmpi_usempif08_la_SOURCES = \ +lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = \ $(mpi_api_files) \ $(pmpi_api_files) \ mpi-f-interfaces-bind.h \ @@ -804,11 +805,11 @@ libmpi_usempif08_la_SOURCES = \ constants.c # These are generated; do not ship them -nodist_libmpi_usempif08_la_SOURCES = +nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES = if BUILD_FORTRAN_SIZEOF SIZEOF_H = sizeof_f08.h -nodist_libmpi_usempif08_la_SOURCES += \ +nodist_lib@OMPI_LIBMPI_NAME@_usempif08_la_SOURCES += \ sizeof_f08.h \ sizeof_f08.f90 \ profile/psizeof_f08.f90 @@ -818,13 +819,13 @@ endif # Include the mpi_f08-based MPI extensions in libmpi_usempif08, too. # -libmpi_usempif08_la_LIBADD = \ +lib@OMPI_LIBMPI_NAME@_usempif08_la_LIBADD = \ $(module_sentinel_file) \ $(OMPI_MPIEXT_USEMPIF08_LIBS) \ - $(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la \ - $(top_builddir)/ompi/libmpi.la -libmpi_usempif08_la_DEPENDENCIES = $(module_sentinel_file) -libmpi_usempif08_la_LDFLAGS = -version-info $(libmpi_usempif08_so_version) + $(top_builddir)/ompi/mpi/fortran/mpif-h/lib@OMPI_LIBMPI_NAME@_mpifh.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la +lib@OMPI_LIBMPI_NAME@_usempif08_la_DEPENDENCIES = $(module_sentinel_file) +lib@OMPI_LIBMPI_NAME@_usempif08_la_LDFLAGS = -version-info $(libmpi_usempif08_so_version) # # Automake doesn't do Fortran dependency analysis, so must list them diff --git a/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am b/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am index 4543b922d90..6ac0c49cee7 100644 --- a/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-ignore-tkr/Makefile.am @@ -3,6 +3,7 @@ # Copyright (c) 2006-2015 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # # $COPYRIGHT$ # @@ -22,7 +23,7 @@ AM_CPPFLAGS = -DOMPI_PROFILE_LAYER=0 -DOMPI_COMPILING_FORTRAN_WRAPPERS=1 AM_FCFLAGS = -I$(top_builddir)/ompi/include -I$(top_srcdir)/ompi/include \ -I$(top_builddir) -I$(top_srcdir) $(FCFLAGS_f90) -lib_LTLIBRARIES = libmpi_usempi_ignore_tkr.la +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr.la mpi-ignore-tkr-interfaces.h: mpi-ignore-tkr-interfaces.h.in mpi-ignore-tkr-file-interfaces.h: mpi-ignore-tkr-file-interfaces.h.in @@ -35,15 +36,15 @@ mpi-ignore-tkr.lo: mpi-ignore-tkr-sizeof.h mpi-ignore-tkr.lo: mpi-ignore-tkr-sizeof.f90 mpi-ignore-tkr.lo: mpi-ignore-tkr.F90 -libmpi_usempi_ignore_tkr_la_SOURCES = \ +lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES = \ mpi-ignore-tkr.F90 -nodist_libmpi_usempi_ignore_tkr_la_SOURCES = \ +nodist_lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES = \ mpi-ignore-tkr-interfaces.h \ mpi-ignore-tkr-file-interfaces.h if BUILD_FORTRAN_SIZEOF # These files are generated; do not distribute them -nodist_libmpi_usempi_ignore_tkr_la_SOURCES += \ +nodist_lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_SOURCES += \ mpi-ignore-tkr-sizeof.h \ mpi-ignore-tkr-sizeof.f90 endif @@ -52,10 +53,10 @@ endif # libmpi_usempi_ignore_tkr.la, so we need to link in the OPAL library # directly (pulling it in indirectly via libmpi.la does not work on # all platforms). -libmpi_usempi_ignore_tkr_la_LIBADD = \ +libOMPI_LIBMPI_NAME_usempi_ignore_tkr_la_LIBADD = \ $(OMPI_MPIEXT_USEMPI_LIBS) \ $(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_PREFIX@open-pal.la -libmpi_usempi_ignore_tkr_la_LDFLAGS = \ +lib@OMPI_LIBMPI_NAME@_usempi_ignore_tkr_la_LDFLAGS = \ -version-info $(libmpi_usempi_ignore_tkr_so_version) \ $(OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS) diff --git a/ompi/mpi/fortran/use-mpi-tkr/Makefile.am b/ompi/mpi/fortran/use-mpi-tkr/Makefile.am index 361cb013d9c..653ad71d8ca 100644 --- a/ompi/mpi/fortran/use-mpi-tkr/Makefile.am +++ b/ompi/mpi/fortran/use-mpi-tkr/Makefile.am @@ -15,6 +15,7 @@ # reserved. # Copyright (c) 2014-2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -49,7 +50,7 @@ lib_LTLIBRARIES = # Add the f90 library to the list of libraries to build -lib_LTLIBRARIES += libmpi_usempi.la +lib_LTLIBRARIES += lib@OMPI_LIBMPI_NAME@_usempi.la # Automake doesn't know how to do F90 dependency analysis, so manually # list this here (i.e., "mpi-f90-interfaces.h" is included in @@ -65,7 +66,7 @@ mpi.lo: mpi-f90-cptr-interfaces.F90 # buffer dummy argument. We therefore really only need to build a # handful of subroutines. -libmpi_usempi_la_SOURCES = \ +lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES = \ mpi.F90 \ mpi_aint_add_f90.f90 \ mpi_aint_diff_f90.f90 \ @@ -79,9 +80,9 @@ libmpi_usempi_la_SOURCES = \ # Don't distribute mpi-tkr-sizeof-*; they're generated. -nodist_libmpi_usempi_la_SOURCES = +nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES = if BUILD_FORTRAN_SIZEOF -nodist_libmpi_usempi_la_SOURCES += \ +nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES += \ mpi-tkr-sizeof.h \ mpi-tkr-sizeof.f90 endif @@ -90,12 +91,12 @@ endif # libmpi_usempi.la, so we need to link in the OPAL library directly # (pulling it in indirectly via libmpi.la does not work on all # platforms). -libmpi_usempi_la_LIBADD = \ - $(top_builddir)/ompi/mpi/fortran/mpif-h/libmpi_mpifh.la \ +lib@OMPI_LIBMPI_NAME@_usempi_la_LIBADD = \ + $(top_builddir)/ompi/mpi/fortran/mpif-h/lib@OMPI_LIBMPI_NAME@_mpifh.la \ $(OMPI_MPIEXT_USEMPI_LIBS) \ $(OMPI_TOP_BUILDDIR)/opal/lib@OPAL_LIB_PREFIX@open-pal.la # Set the library version -libmpi_usempi_la_LDFLAGS = \ +lib@OMPI_LIBMPI_NAME@_usempi_la_LDFLAGS = \ -version-info $(libmpi_usempi_tkr_so_version) \ $(OMPI_FORTRAN_EXTRA_SHARED_LIBRARY_FLAGS) @@ -132,7 +133,7 @@ mpi-tkr-sizeof.f90: CLEANFILES += mpi-tkr-sizeof.h mpi-tkr-sizeof.f90 MOSTLYCLEANFILES = *.mod -DISTCLEANFILES = $(nodist_libmpi_usempi_la_SOURCES) +DISTCLEANFILES = $(nodist_lib@OMPI_LIBMPI_NAME@_usempi_la_SOURCES) # # Install the generated .mod files. Unfortunately, each F90 compiler diff --git a/ompi/mpi/java/c/Makefile.am b/ompi/mpi/java/c/Makefile.am index a0a5c6ac980..2fee2dc0611 100644 --- a/ompi/mpi/java/c/Makefile.am +++ b/ompi/mpi/java/c/Makefile.am @@ -6,6 +6,7 @@ # reserved. # Copyright (c) 2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -16,7 +17,7 @@ if OMPI_WANT_JAVA_BINDINGS # Get the include files that were generated from the .java source files -AM_CPPFLAGS = -I$(top_builddir)/ompi/mpi/java/java $(OPAL_JDK_CPPFLAGS) -DOPAL_DYN_LIB_SUFFIX=\"$(OPAL_DYN_LIB_SUFFIX)\" +AM_CPPFLAGS = -I$(top_builddir)/ompi/mpi/java/java $(OPAL_JDK_CPPFLAGS) -DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\" -DOPAL_DYN_LIB_SUFFIX=\"$(OPAL_DYN_LIB_SUFFIX)\" headers = \ mpiJava.h @@ -24,8 +25,8 @@ ompidir = $(ompiincludedir)/ompi/mpi/java ompi_HEADERS = \ $(headers) -lib_LTLIBRARIES = libmpi_java.la -libmpi_java_la_SOURCES = \ +lib_LTLIBRARIES = lib@OMPI_LIBMPI_NAME@_java.la +lib@OMPI_LIBMPI_NAME@_java_la_SOURCES = \ mpi_CartComm.c \ mpi_Comm.c \ mpi_Constant.c \ @@ -46,7 +47,7 @@ libmpi_java_la_SOURCES = \ mpi_Status.c \ mpi_Win.c -libmpi_java_la_LIBADD = -ldl $(top_builddir)/ompi/libmpi.la -libmpi_java_la_LDFLAGS = -version-info $(libmpi_java_so_version) +lib@OMPI_LIBMPI_NAME@_java_la_LIBADD = -ldl $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la +lib@OMPI_LIBMPI_NAME@_java_la_LDFLAGS = -version-info $(libmpi_java_so_version) endif diff --git a/ompi/mpi/java/c/mpi_MPI.c b/ompi/mpi/java/c/mpi_MPI.c index 3ad72965916..0023a3ebcd7 100644 --- a/ompi/mpi/java/c/mpi_MPI.c +++ b/ompi/mpi/java/c/mpi_MPI.c @@ -16,6 +16,7 @@ * Copyright (c) 2015 Intel, Inc. All rights reserved. * Copyright (c) 2015 Research Organization for Information Science * and Technology (RIST). All rights reserved. + * Copyright (c) 2016 IBM Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -135,7 +136,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) // the library (see comment in the function for more detail). opal_init_psm(); - libmpi = dlopen("libmpi." OPAL_DYN_LIB_SUFFIX, RTLD_NOW | RTLD_GLOBAL); + libmpi = dlopen("lib" OMPI_LIBMPI_NAME "." OPAL_DYN_LIB_SUFFIX, RTLD_NOW | RTLD_GLOBAL); #if defined(HAVE_DL_INFO) && defined(HAVE_LIBGEN_H) /* @@ -149,7 +150,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) char libmpipath[OPAL_PATH_MAX]; char *libmpijavapath = strdup(info.dli_fname); if (NULL != libmpijavapath) { - snprintf(libmpipath, OPAL_PATH_MAX-1, "%s/libmpi." OPAL_DYN_LIB_SUFFIX, dirname(libmpijavapath)); + snprintf(libmpipath, OPAL_PATH_MAX-1, "%s/lib" OMPI_LIBMPI_NAME "." OPAL_DYN_LIB_SUFFIX, dirname(libmpijavapath)); free(libmpijavapath); libmpi = dlopen(libmpipath, RTLD_NOW | RTLD_GLOBAL); } @@ -159,7 +160,7 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) if(NULL == libmpi) { - fprintf(stderr, "Java bindings failed to load libmpi: %s\n",dlerror()); + fprintf(stderr, "Java bindings failed to load lib" OMPI_LIBMPI_NAME ": %s\n",dlerror()); exit(1); } diff --git a/ompi/mpiext/Makefile.am b/ompi/mpiext/Makefile.am index c561886e878..bbbdec3531c 100644 --- a/ompi/mpiext/Makefile.am +++ b/ompi/mpiext/Makefile.am @@ -2,6 +2,7 @@ # Copyright (c) 2004-2009 The Trustees of Indiana University and Indiana # University Research and Technology # Corporation. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -15,5 +16,5 @@ headers += \ mpiext/mpiext.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ mpiext/mpiext.c diff --git a/ompi/op/Makefile.am b/ompi/op/Makefile.am index b16c9d85c8d..5599c31311b 100644 --- a/ompi/op/Makefile.am +++ b/ompi/op/Makefile.am @@ -11,6 +11,7 @@ # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. # Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -23,4 +24,4 @@ headers += op/op.h -libmpi_la_SOURCES += op/op.c +lib@OMPI_LIBMPI_NAME@_la_SOURCES += op/op.c diff --git a/ompi/patterns/comm/Makefile.am b/ompi/patterns/comm/Makefile.am index 102ef512a84..9a733aff78a 100644 --- a/ompi/patterns/comm/Makefile.am +++ b/ompi/patterns/comm/Makefile.am @@ -1,4 +1,5 @@ # Copyright (c) 2013 Oak Ridge National Laboratory. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -10,7 +11,7 @@ headers += \ patterns/comm/coll_ops.h \ patterns/comm/commpatterns.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ patterns/comm/allreduce.c \ patterns/comm/allgather.c \ patterns/comm/bcast.c diff --git a/ompi/patterns/net/Makefile.am b/ompi/patterns/net/Makefile.am index 51794668190..d9b07fd1422 100644 --- a/ompi/patterns/net/Makefile.am +++ b/ompi/patterns/net/Makefile.am @@ -1,4 +1,5 @@ # Copyright (c) 2013 Oak Ridge National Laboratory. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -11,7 +12,7 @@ headers += \ patterns/net/netpatterns_knomial_tree.h \ patterns/net/coll_ops.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ patterns/net/netpatterns_base.c \ patterns/net/netpatterns_multinomial_tree.c \ patterns/net/netpatterns_nary_tree.c \ diff --git a/ompi/peruse/Makefile.am b/ompi/peruse/Makefile.am index 1e650b1eee4..9b2d043ce43 100644 --- a/ompi/peruse/Makefile.am +++ b/ompi/peruse/Makefile.am @@ -5,6 +5,7 @@ # reserved. # Copyright (c) 2004-2006 High Performance Computing Center Stuttgart, # University of Stuttgart. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -20,7 +21,7 @@ if WANT_PERUSE # do NOT want this nobase - we want the peruse stripped off... include_HEADERS += peruse/peruse.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ peruse/peruse.c \ peruse/peruse_module.c endif diff --git a/ompi/proc/Makefile.am b/ompi/proc/Makefile.am index efeff61bc53..e9ad85d6f73 100644 --- a/ompi/proc/Makefile.am +++ b/ompi/proc/Makefile.am @@ -10,6 +10,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -22,5 +23,5 @@ headers += \ proc/proc.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ proc/proc.c diff --git a/ompi/request/Makefile.am b/ompi/request/Makefile.am index 6ae3f916a3c..e4a1254e04a 100644 --- a/ompi/request/Makefile.am +++ b/ompi/request/Makefile.am @@ -12,6 +12,7 @@ # All rights reserved. # Copyright (c) 2015 Los Alamos National Security, LLC. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -27,7 +28,7 @@ headers += \ request/request.h \ request/request_dbg.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ request/grequest.c \ request/request.c \ request/req_test.c \ diff --git a/ompi/runtime/Makefile.am b/ompi/runtime/Makefile.am index 9dc5aa73660..396dc70a239 100644 --- a/ompi/runtime/Makefile.am +++ b/ompi/runtime/Makefile.am @@ -13,6 +13,7 @@ # Copyright (c) 2014 Intel, Inc. All rights reserved. # Copyright (c) 2015 Los Alamos National Security, LLC. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -29,7 +30,7 @@ headers += \ runtime/params.h \ runtime/ompi_info_support.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ runtime/ompi_mpi_abort.c \ runtime/ompi_mpi_init.c \ runtime/ompi_mpi_finalize.c \ diff --git a/ompi/tools/mpisync/Makefile.am b/ompi/tools/mpisync/Makefile.am index e93ac56ce29..50619e0aad8 100644 --- a/ompi/tools/mpisync/Makefile.am +++ b/ompi/tools/mpisync/Makefile.am @@ -14,6 +14,7 @@ # Copyright (c) 2012 Los Alamos National Security, LLC. # All rights reserved. # Copyright (c) 2014 Artem Polyakov +# Copyright (c) 2016 IBM Corporation. All rights reserved. # # $COPYRIGHT$ # @@ -71,7 +72,7 @@ mpisync_SOURCES = \ mpigclock.c \ sync.c -mpisync_LDADD = $(top_builddir)/ompi/libmpi.la +mpisync_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la if OMPI_RTE_ORTE mpisync_LDADD += $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la endif diff --git a/ompi/tools/ompi_info/Makefile.am b/ompi/tools/ompi_info/Makefile.am index 5623ee6a3b3..58ab9dd0c0b 100644 --- a/ompi/tools/ompi_info/Makefile.am +++ b/ompi/tools/ompi_info/Makefile.am @@ -13,6 +13,7 @@ # Copyright (c) 2008 Sun Microsystems, Inc. All rights reserved. # Copyright (c) 2012 Los Alamos National Security, LLC. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -61,7 +62,7 @@ ompi_info_SOURCES = \ ompi_info.c \ param.c -ompi_info_LDADD = $(top_builddir)/ompi/libmpi.la +ompi_info_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la if OMPI_RTE_ORTE ompi_info_LDADD += $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la endif diff --git a/ompi/tools/wrappers/mpic++-wrapper-data.txt.in b/ompi/tools/wrappers/mpic++-wrapper-data.txt.in index 6f5c2b99623..082d3a94dc6 100644 --- a/ompi/tools/wrappers/mpic++-wrapper-data.txt.in +++ b/ompi/tools/wrappers/mpic++-wrapper-data.txt.in @@ -20,10 +20,10 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@ # intentionally only link in the MPI libraries (ORTE, OPAL, etc. are # pulled in implicitly) because we intend MPI applications to only use # the MPI API. -libs=@OMPI_WRAPPER_CXX_LIB@ -lmpi -libs_static=@OMPI_WRAPPER_CXX_LIB@ -lmpi -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ -dyn_lib_file=libmpi.@OPAL_DYN_LIB_SUFFIX@ -static_lib_file=libmpi.a +libs=@OMPI_WRAPPER_CXX_LIB@ -l@OMPI_LIBMPI_NAME@ +libs_static=@OMPI_WRAPPER_CXX_LIB@ -l@OMPI_LIBMPI_NAME@ -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ +dyn_lib_file=lib@OMPI_LIBMPI_NAME@.@OPAL_DYN_LIB_SUFFIX@ +static_lib_file=lib@OMPI_LIBMPI_NAME@.a required_file=@OMPI_WRAPPER_CXX_REQUIRED_FILE@ includedir=${includedir} libdir=${libdir} diff --git a/ompi/tools/wrappers/mpicc-wrapper-data.txt.in b/ompi/tools/wrappers/mpicc-wrapper-data.txt.in index b025f216087..5f5db45b024 100644 --- a/ompi/tools/wrappers/mpicc-wrapper-data.txt.in +++ b/ompi/tools/wrappers/mpicc-wrapper-data.txt.in @@ -20,10 +20,10 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@ # intentionally only link in the MPI libraries (ORTE, OPAL, etc. are # pulled in implicitly) because we intend MPI applications to only use # the MPI API. -libs=-lmpi -libs_static=-lmpi -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ -dyn_lib_file=libmpi.@OPAL_DYN_LIB_SUFFIX@ -static_lib_file=libmpi.a +libs=-l@OMPI_LIBMPI_NAME@ +libs_static=-l@OMPI_LIBMPI_NAME@ -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ +dyn_lib_file=lib@OMPI_LIBMPI_NAME@.@OPAL_DYN_LIB_SUFFIX@ +static_lib_file=lib@OMPI_LIBMPI_NAME@.a required_file= includedir=${includedir} libdir=${libdir} diff --git a/ompi/tools/wrappers/mpifort-wrapper-data.txt.in b/ompi/tools/wrappers/mpifort-wrapper-data.txt.in index e3559cd0230..aeb3e750651 100644 --- a/ompi/tools/wrappers/mpifort-wrapper-data.txt.in +++ b/ompi/tools/wrappers/mpifort-wrapper-data.txt.in @@ -19,10 +19,10 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@ # intentionally only link in the MPI libraries (ORTE, OPAL, etc. are # pulled in implicitly) because we intend MPI applications to only use # the MPI API. -libs=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -lmpi_mpifh -lmpi -libs_static=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -lmpi_mpifh -lmpi -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ -dyn_lib_file=libmpi.@OPAL_DYN_LIB_SUFFIX@ -static_lib_file=libmpi.a +libs=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ +libs_static=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ +dyn_lib_file=lib@OMPI_LIBMPI_NAME@.@OPAL_DYN_LIB_SUFFIX@ +static_lib_file=lib@OMPI_LIBMPI_NAME@.a required_file=@OMPI_WRAPPER_FORTRAN_REQUIRED_FILE@ includedir=${includedir} libdir=${libdir} diff --git a/ompi/tools/wrappers/ompi-c.pc.in b/ompi/tools/wrappers/ompi-c.pc.in index df5f293c423..be29ad77f2c 100644 --- a/ompi/tools/wrappers/ompi-c.pc.in +++ b/ompi/tools/wrappers/ompi-c.pc.in @@ -1,4 +1,5 @@ # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # Name: Open MPI Description: Portable high-performance MPI implementation @@ -15,7 +16,7 @@ pkgincludedir=@opalincludedir@ # static linking (they're pulled in by libopen-rte.so's implicit # dependencies), so only list these in Libs.private. # -Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -lmpi +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -l@OMPI_LIBMPI_NAME@ Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ # Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CFLAGS@ diff --git a/ompi/tools/wrappers/ompi-cxx.pc.in b/ompi/tools/wrappers/ompi-cxx.pc.in index 852b2debae5..4b1936639f3 100644 --- a/ompi/tools/wrappers/ompi-cxx.pc.in +++ b/ompi/tools/wrappers/ompi-cxx.pc.in @@ -1,4 +1,5 @@ # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # Name: Open MPI Description: Portable high-performance MPI implementation @@ -15,7 +16,7 @@ pkgincludedir=@opalincludedir@ # static linking (they're pulled in by libopen-rte.so's implicit # dependencies), so only list these in Libs.private. # -Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_WRAPPER_CXX_LIB@ -lmpi +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_WRAPPER_CXX_LIB@ -l@OMPI_LIBMPI_NAME@ Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ # Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CXXFLAGS@ diff --git a/ompi/tools/wrappers/ompi-fort.pc.in b/ompi/tools/wrappers/ompi-fort.pc.in index b320bd40c5c..5635870b80e 100644 --- a/ompi/tools/wrappers/ompi-fort.pc.in +++ b/ompi/tools/wrappers/ompi-fort.pc.in @@ -1,4 +1,5 @@ # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # Name: Open MPI Description: Portable high-performance MPI implementation @@ -15,6 +16,6 @@ pkgincludedir=@opalincludedir@ # static linking (they're pulled in by libopen-rte.so's implicit # dependencies), so only list these in Libs.private. # -Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -lmpi_mpifh -lmpi +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@ Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_FCFLAGS@ diff --git a/ompi/tools/wrappers/ompi.pc.in b/ompi/tools/wrappers/ompi.pc.in index 808c0120229..c6961869ee8 100644 --- a/ompi/tools/wrappers/ompi.pc.in +++ b/ompi/tools/wrappers/ompi.pc.in @@ -1,4 +1,5 @@ # Copyright (c) 2010 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # Name: Open MPI Description: Portable high-performance MPI implementation @@ -15,7 +16,7 @@ pkgincludedir=@opalincludedir@ # static linking (they're pulled in by libopen-rte.so's implicit # dependencies), so only list these in Libs.private. # -Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -lmpi +Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ -l@OMPI_LIBMPI_NAME@ Libs.private: @OMPI_WRAPPER_EXTRA_LIBS@ # Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_CFLAGS@ diff --git a/ompi/tools/wrappers/ompi_wrapper_script.in b/ompi/tools/wrappers/ompi_wrapper_script.in index 903590fe9c2..2d0cfb2ae39 100644 --- a/ompi/tools/wrappers/ompi_wrapper_script.in +++ b/ompi/tools/wrappers/ompi_wrapper_script.in @@ -7,6 +7,7 @@ # Copyright (c) 2009-2012 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved. # Copyright (c) 2013 Sandia National Laboratories. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -46,6 +47,7 @@ my $cxx_lib = "@OMPI_WRAPPER_CXX_LIB@"; my $fc_module_flag = "@OMPI_FC_MODULE_FLAG@"; my $dynamic_lib_suffix = "@OPAL_DYN_LIB_SUFFIX@"; my $fortran_libs = "@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@"; +my $ompi_libmpi_name = "@OMPI_LIBMPI_NAME@"; # Someone might want to fix for windows my $include_flag = "-I"; @@ -61,15 +63,15 @@ my $linker_flags = $libdir_flag . $libdir . " " . $extra_ldflags; # intentionally only link in the MPI libraries (ORTE, OPAL, etc. are # pulled in implicitly) because we intend MPI applications to only use # the MPI API. -my $libs = "-lmpi " . $extra_libs; -my $libs_static = "-lmpi -lopen-rte -lopen-pal " . $extra_libs; +my $libs = "-l".$ompi_libmpi_name." " . $extra_libs; +my $libs_static = "-l".$ompi_libmpi_name." -lopen-rte -lopen-pal " . $extra_libs; my $have_dynamic = 0; -if (-e $libdir . "/libmpi." . $dynamic_lib_suffix) { +if (-e $libdir . "/lib".$ompi_libmpi_name."." . $dynamic_lib_suffix) { $have_dynamic = 1; } my $have_static = 0; -if (-e $libdir . "/libmpi.a") { +if (-e $libdir . "/lib".$ompi_libmpi_name.".a") { $have_static = 1; } @@ -123,7 +125,7 @@ elsif (basename($0) eq "mpifort" || # no extra includes for Fortran. $comp_flags = $extra_fcflags; $comp_flags_prefix = $extra_fcflags_prefix; - $libs = $fortran_libs . " -lmpi_mpifh " . $libs; + $libs = $fortran_libs . " -l".$ompi_libmpi_name."_mpifh " . $libs; } if ($lang eq "none") { diff --git a/ompi/win/Makefile.am b/ompi/win/Makefile.am index 28c96187b47..67126c71ec0 100644 --- a/ompi/win/Makefile.am +++ b/ompi/win/Makefile.am @@ -10,6 +10,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -22,5 +23,5 @@ headers += \ win/win.h -libmpi_la_SOURCES += \ +lib@OMPI_LIBMPI_NAME@_la_SOURCES += \ win/win.c diff --git a/opal/mca/btl/usnic/Makefile.am b/opal/mca/btl/usnic/Makefile.am index 3f38e8fc7d1..76f49a08aef 100644 --- a/opal/mca/btl/usnic/Makefile.am +++ b/opal/mca/btl/usnic/Makefile.am @@ -13,6 +13,7 @@ # reserved. # Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2015 Intel, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -20,7 +21,7 @@ # $HEADER$ # -AM_CPPFLAGS = -DBTL_IN_OPAL=1 $(opal_common_libfabric_CPPFLAGS) +AM_CPPFLAGS = -DBTL_IN_OPAL=1 $(opal_common_libfabric_CPPFLAGS) -DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\" EXTRA_DIST = README.txt README.test diff --git a/opal/mca/btl/usnic/test/usnic_btl_run_tests.c b/opal/mca/btl/usnic/test/usnic_btl_run_tests.c index 3abfdf48fdd..5b79e85fb78 100644 --- a/opal/mca/btl/usnic/test/usnic_btl_run_tests.c +++ b/opal/mca/btl/usnic/test/usnic_btl_run_tests.c @@ -1,5 +1,6 @@ /* * Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. + * Copyright (c) 2016 IBM Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -38,7 +39,7 @@ int main(int argc, char **argv) char *to; int path_len; - mpi_handle = dlopen("libmpi.so", RTLD_NOW|RTLD_GLOBAL); + mpi_handle = dlopen("lib" OMPI_LIBMPI_NAME ".so", RTLD_NOW|RTLD_GLOBAL); if (mpi_handle == NULL) { fprintf(stderr, "mpi_handle=NULL dlerror()=%s\n", dlerror()); abort(); diff --git a/oshmem/Makefile.am b/oshmem/Makefile.am index b79d84fe5e6..69a2a747182 100644 --- a/oshmem/Makefile.am +++ b/oshmem/Makefile.am @@ -5,6 +5,7 @@ # Copyright (c) 2014 Intel, Inc. All rights reserved. # Copyright (c) 2015 Los Alamos National Security, LLC. All rights # reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -66,7 +67,7 @@ liboshmem_la_LIBADD = \ $(fortran_oshmem_lib) \ $(fortran_pshmem_lib) \ $(MCA_oshmem_FRAMEWORK_LIBS) \ - $(OSHMEM_TOP_BUILDDIR)/ompi/libmpi.la + $(OSHMEM_TOP_BUILDDIR)/ompi/lib@OMPI_LIBMPI_NAME@.la liboshmem_la_DEPENDENCIES = $(liboshmem_la_LIBADD) liboshmem_la_LDFLAGS = \ -version-info $(liboshmem_so_version) \ diff --git a/oshmem/mca/memheap/base/Makefile.am b/oshmem/mca/memheap/base/Makefile.am index 29c6aa7d246..0244f7ea103 100644 --- a/oshmem/mca/memheap/base/Makefile.am +++ b/oshmem/mca/memheap/base/Makefile.am @@ -1,5 +1,6 @@ # Copyright (c) 2014 Mellanox Technologies, Inc. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -9,6 +10,8 @@ dist_oshmemdata_DATA += base/help-oshmem-memheap.txt +AM_CPPFLAGS = -DOMPI_LIBMPI_NAME=\"$(OMPI_LIBMPI_NAME)\" + headers += \ base/base.h diff --git a/oshmem/mca/memheap/base/memheap_base_static.c b/oshmem/mca/memheap/base/memheap_base_static.c index 8544f7f51bf..ff0a43b7be4 100644 --- a/oshmem/mca/memheap/base/memheap_base_static.c +++ b/oshmem/mca/memheap/base/memheap_base_static.c @@ -1,6 +1,7 @@ /* * Copyright (c) 2013 Mellanox Technologies, Inc. * All rights reserved. + * Copyright (c) 2016 IBM Corporation. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -157,7 +158,7 @@ static int _check_pathname(struct map_segment_desc *seg) if (0 == strncmp(p+1, "libshmem.so", 11)) return OSHMEM_ERROR; - if (0 == strncmp(p+1, "libmpi.so", 9)) + if (0 == strncmp(p+1, "lib" OMPI_LIBMPI_NAME ".so", 9)) return OSHMEM_ERROR; if (0 == strncmp(p+1, "libmca_common_sm.so", 19)) diff --git a/oshmem/tools/oshmem_info/Makefile.am b/oshmem/tools/oshmem_info/Makefile.am index 6d2a92a8cd2..c4ddc2d6e9a 100644 --- a/oshmem/tools/oshmem_info/Makefile.am +++ b/oshmem/tools/oshmem_info/Makefile.am @@ -2,6 +2,7 @@ # Copyright (c) 2014 Mellanox Technologies, Inc. # All rights reserved. # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -66,7 +67,7 @@ oshmem_info_SOURCES = \ oshmem_info.c \ param.c -oshmem_info_LDADD = $(top_builddir)/ompi/libmpi.la +oshmem_info_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la oshmem_info_LDADD += $(top_builddir)/oshmem/liboshmem.la if OMPI_RTE_ORTE oshmem_info_LDADD += $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la diff --git a/oshmem/tools/wrappers/shmemcc-wrapper-data.txt.in b/oshmem/tools/wrappers/shmemcc-wrapper-data.txt.in index 850df7ec7c6..812f2b19b9a 100644 --- a/oshmem/tools/wrappers/shmemcc-wrapper-data.txt.in +++ b/oshmem/tools/wrappers/shmemcc-wrapper-data.txt.in @@ -1,6 +1,7 @@ # Copyright (c) 2013 Mellanox Technologies, Inc. # All rights reserved. # Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -28,8 +29,8 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@ # intentionally only link in the SHMEM and MPI libraries (ORTE, OPAL, # etc. are pulled in implicitly) because we intend SHMEM/MPI # applications to only use the SHMEM and MPI APIs. -libs=-loshmem -lmpi -libs_static=-loshmem -lmpi -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ +libs=-loshmem -l@OMPI_LIBMPI_NAME@ +libs_static=-loshmem -l@OMPI_LIBMPI_NAME@ -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ dyn_lib_file=liboshmem.@OPAL_DYN_LIB_SUFFIX@ static_lib_file=liboshmem.a required_file= diff --git a/oshmem/tools/wrappers/shmemfort-wrapper-data.txt.in b/oshmem/tools/wrappers/shmemfort-wrapper-data.txt.in index 6a63d631641..901f99d7fd2 100644 --- a/oshmem/tools/wrappers/shmemfort-wrapper-data.txt.in +++ b/oshmem/tools/wrappers/shmemfort-wrapper-data.txt.in @@ -1,6 +1,7 @@ # Copyright (c) 2013 Mellanox Technologies, Inc. # All rights reserved. # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -28,8 +29,8 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@ # intentionally only link in the SHMEM and MPI libraries (ORTE, OPAL, # etc. are pulled in implicitly) because we intend SHMEM/MPI # applications to only use the SHMEM and MPI APIs. -libs=-loshmem -lmpi_mpifh -lmpi -libs_static=-loshmem -lmpi_mpifh -lmpi -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ +libs=-loshmem -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ +libs_static=-loshmem -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ -l@ORTE_LIB_PREFIX@open-rte -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@ dyn_lib_file=liboshmem.@OPAL_DYN_LIB_SUFFIX@ static_lib_file=liboshmem.a required_file=@OMPI_WRAPPER_FORTRAN_REQUIRED_FILE@ diff --git a/test/class/Makefile.am b/test/class/Makefile.am index a3b4081ffbf..7da24f21105 100644 --- a/test/class/Makefile.am +++ b/test/class/Makefile.am @@ -13,6 +13,7 @@ # Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved. # Copyright (c) 2014 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -83,7 +84,7 @@ opal_value_array_DEPENDENCIES = $(opal_value_array_LDADD) ompi_rb_tree_SOURCES = ompi_rb_tree.c ompi_rb_tree_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la \ $(top_builddir)/test/support/libsupport.a ompi_rb_tree_DEPENDENCIES = $(ompi_rb_tree_LDADD) diff --git a/test/datatype/Makefile.am b/test/datatype/Makefile.am index 7d70a381497..c3170e44646 100644 --- a/test/datatype/Makefile.am +++ b/test/datatype/Makefile.am @@ -6,6 +6,7 @@ # Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. # Copyright (c) 2014-2015 Research Organization for Information Science # and Technology (RIST). All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -24,48 +25,48 @@ check_PROGRAMS = $(TESTS) $(MPI_CHECKS) unpack_ooo_SOURCES = unpack_ooo.c ddt_lib.c ddt_lib.h unpack_ooo_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) unpack_ooo_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la ddt_test_SOURCES = ddt_test.c ddt_lib.c ddt_lib.h ddt_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) ddt_test_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la ddt_raw_SOURCES = ddt_raw.c ddt_lib.c ddt_lib.h ddt_raw_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) ddt_raw_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la ddt_pack_SOURCES = ddt_pack.c ddt_pack_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) ddt_pack_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la checksum_SOURCES = checksum.c checksum_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) checksum_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la position_SOURCES = position.c position_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) position_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la position_noncontig_SOURCES = position_noncontig.c position_noncontig_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) position_noncontig_LDADD = \ - $(top_builddir)/ompi/libmpi.la \ + $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/opal/lib@OPAL_LIB_PREFIX@open-pal.la to_self_SOURCES = to_self.c to_self_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) -to_self_LDADD = $(top_builddir)/ompi/libmpi.la +to_self_LDADD = $(top_builddir)/ompi/lib@OMPI_LIBMPI_NAME@.la opal_datatype_test_SOURCES = opal_datatype_test.c opal_ddt_lib.c opal_ddt_lib.h opal_datatype_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS) diff --git a/test/mpi/environment/Makefile.am b/test/mpi/environment/Makefile.am index 2ce96ae40cc..1ea11cc9dd0 100644 --- a/test/mpi/environment/Makefile.am +++ b/test/mpi/environment/Makefile.am @@ -10,6 +10,7 @@ # University of Stuttgart. All rights reserved. # Copyright (c) 2004-2005 The Regents of the University of California. # All rights reserved. +# Copyright (c) 2016 IBM Corporation. All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -23,7 +24,7 @@ noinst_PROGRAMS = chello chello_SOURCES = chello.c chello_LDADD = \ - $(top_builddir)/src/libmpi.la \ + $(top_builddir)/src/lib@OMPI_LIBMPI_NAME@.la \ $(top_builddir)/src/libompi.la chello_DEPENDENCIES = $(chello_LDADD)