Skip to content

Commit bf41016

Browse files
authored
Merge pull request #9220 from awlauria/fix_lompi_osh
Remove hard coded -lmpi from oshc++ wrapper.
2 parents fa3aafa + 5271cc1 commit bf41016

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

oshmem/tools/wrappers/shmemc++-wrapper-data.txt.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# All rights reserved.
33
# Copyright (c) 2014-2015 Cisco Systems, Inc. All rights reserved.
44
# Copyright (c) 2020 Intel, Inc. All rights reserved.
5+
# Copyright (c) 2016-2021 IBM Corporation. All rights reserved.
56
# $COPYRIGHT$
67
#
78
# Additional copyrights may follow
@@ -29,8 +30,8 @@ linker_flags=@OMPI_WRAPPER_EXTRA_LDFLAGS@
2930
# intentionally only link in the SHMEM and MPI libraries (OPAL,
3031
# etc. are pulled in implicitly) because we intend SHMEM/MPI
3132
# applications to only use the SHMEM and MPI APIs.
32-
libs=-loshmem -lmpi
33-
libs_static=-loshmem -lmpi -l@OPAL_LIB_NAME@ @OMPI_WRAPPER_EXTRA_LIBS@
33+
libs=-loshmem -l@OMPI_LIBMPI_NAME@
34+
libs_static=-loshmem -l@OMPI_LIBMPI_NAME@ -l@OPAL_LIB_NAME@ @OMPI_WRAPPER_EXTRA_LIBS@
3435
dyn_lib_file=liboshmem.@OPAL_DYN_LIB_SUFFIX@
3536
static_lib_file=liboshmem.a
3637
required_file=

0 commit comments

Comments
 (0)