Skip to content

Commit d0d0f69

Browse files
committed
fix problems with makefiles and some symbols
being doubly defined in the profile/non-profile abi mpi libs. Signed-off-by: Howard Pritchard <[email protected]>
1 parent 324398e commit d0d0f69

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ompi/mpi/c/Makefile_abi.include

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ endif
3939
BUILT_SOURCES = abi.h standard_abi/mpi.h
4040

4141
libmpi_c_abi_la_SOURCES = \
42-
attr_fn.c
42+
attr_fn.c \
43+
ompi_isendrecv.c \
44+
ompi_sendrecv.c
4345

4446
extra_abi_fns = \
4547
abi_get_info.c \
4648
abi_get_version.c \
47-
ompi_isendrecv.c \
48-
ompi_sendrecv.c \
4949
pcontrol.c \
5050
wtick.c
5151

ompi/mpi/c/abi_get_version.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
#include "ompi/mpi/c/abi.h"
2222
#endif
2323

24+
#if OMPI_BUILD_MPI_PROFILING
25+
#if OPAL_HAVE_WEAK_SYMBOLS
26+
#pragma weak MPI_Abi_get_version = PMPI_Abi_get_version
27+
#endif
28+
#define MPI_Abi_get_version PMPI_Abi_get_version
29+
#endif
30+
2431
int MPI_Abi_get_version(int *abi_major, int *abi_minor)
2532
{
2633
/* 0.1 */

0 commit comments

Comments
 (0)