Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 6b46987

Browse files
committed
fortran mpifh: only compile the sizeof lib when necessary
This change was already on master; it was apparently made a long time ago. Hence, this commit is not a cherry-pick from master (I didn't go back to try to find that specific fix); it's a unique commit on v1.10 to bring this specific section of mpif-h/Makefile.am in-line with what is on master. Namely: only create the libmpi_mpifh_sizeof.la if there is a need to. Otherwise, use AM_CONDITIONAL logic to not build it at all.
1 parent fdeea88 commit 6b46987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ompi/mpi/fortran/mpif-h/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,13 @@ MOSTLYCLEANFILES = *.mod
109109
# out this workaround indefinitely. So Jeff advised Absoft to fix
110110
# this bug in Sep 2014.
111111
if OMPI_BUILD_FORTRAN_MPIFH_BINDINGS
112-
noinst_LTLIBRARIES += libmpi_mpifh_sizeof.la
113112

114113
if BUILD_FORTRAN_SIZEOF
114+
noinst_LTLIBRARIES += libmpi_mpifh_sizeof.la
115115
# Do not dist this file; it is generated
116116
nodist_libmpi_mpifh_sizeof_la_SOURCES = sizeof_f.f90
117-
endif
118117
libmpi_mpifh_la_LIBADD += libmpi_mpifh_sizeof.la
118+
endif
119119

120120
sizeof_pl = $(top_srcdir)/ompi/mpi/fortran/base/gen-mpi-sizeof.pl
121121

0 commit comments

Comments
 (0)