File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -649,6 +649,18 @@ end type test_mpi_handle],
649
649
[$OMPI_FORTRAN_HAVE_STORAGE_SIZE ],
650
650
[Whether the compiler supports STORAGE_SIZE on relevant types])
651
651
652
+ # This token is used in the mpifort wrapper compiler data file.
653
+ # If we are building the Fortran bindings, then include
654
+ # -lompi_mpifh in the link line. If we're not building the
655
+ # Fortran bindings, then do not include that token in the link
656
+ # line (because we'll still install mpifort to link Fortran
657
+ # applications with the C bindings, even if the Fortran MPI
658
+ # bindings are not being built).
659
+ AS_IF([test $OMPI_BUILD_FORTRAN_BINDINGS -gt $OMPI_FORTRAN_NO_BINDINGS ],
660
+ [OMPI_FORTRAN_MPIFH_LINK= -l${OMPI_LIBMPI_NAME} _mpifh],
661
+ [OMPI_FORTRAN_MPIFH_LINK= ])
662
+ AC_SUBST(OMPI_FORTRAN_MPIFH_LINK)
663
+
652
664
# This conditional is used to determine whether we compile the
653
665
# various .f90 files that contain MPI_SIZEOF implementations.
654
666
AM_CONDITIONAL([BUILD_FORTRAN_SIZEOF],
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ linker_flags=@OMPI_WRAPPER_EXTRA_FC_LDFLAGS@
19
19
# intentionally only link in the MPI libraries (OPAL, etc. are
20
20
# pulled in implicitly) because we intend MPI applications to only use
21
21
# the MPI API.
22
- libs=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@
23
- libs_static=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@ -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@
22
+ libs=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ @OMPI_FORTRAN_MPIFH_LINK@ -l@OMPI_LIBMPI_NAME@
23
+ libs_static=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ @OMPI_FORTRAN_MPIFH_LINK@ -l@OMPI_LIBMPI_NAME@ -l@OPAL_LIB_PREFIX@open-pal @OMPI_WRAPPER_EXTRA_LIBS@
24
24
dyn_lib_file=lib@OMPI_LIBMPI_NAME@.@OPAL_DYN_LIB_SUFFIX@
25
25
static_lib_file=lib@OMPI_LIBMPI_NAME@.a
26
26
required_file=@OMPI_WRAPPER_FORTRAN_REQUIRED_FILE@
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ pkgincludedir=@opalincludedir@
16
16
# static linking (they're pulled in by libopen-rte.so's implicit
17
17
# dependencies), so only list these in Libs.private.
18
18
#
19
- Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMPI_NAME@_mpifh -l@OMPI_LIBMPI_NAME@
19
+ Libs: -L${libdir} @OMPI_PKG_CONFIG_LDFLAGS@ @OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ @OMPI_FORTRAN_MPIFH_LINK@ -l@OMPI_LIBMPI_NAME@
20
20
Libs.private: -lopen-rte -lopen-pal @OMPI_WRAPPER_EXTRA_LIBS@
21
21
Cflags: -I${includedir} @OMPI_WRAPPER_EXTRA_CPPFLAGS@ @OMPI_WRAPPER_EXTRA_FCFLAGS@
You can’t perform that action at this time.
0 commit comments