From: Alastair McKinstry Date: Mon, 1 Jan 2024 17:14:56 +0000 (+0000) Subject: Search for mod files in $FMODDIR directory X-Git-Tag: archive/raspbian/4.1.6-5+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0cbb3f2f9ff113a200663ec234327bd32627347;p=openmpi.git Search for mod files in $FMODDIR directory Last-Updated: 2023-12-21 Forwarded: no Also look in a fortran-ABI-specific directory for libs Gbp-Pq: Name mpifort.patch --- diff --git a/ompi/tools/wrappers/mpifort-wrapper-data.txt.in b/ompi/tools/wrappers/mpifort-wrapper-data.txt.in index 27a7c05e..7821251e 100644 --- a/ompi/tools/wrappers/mpifort-wrapper-data.txt.in +++ b/ompi/tools/wrappers/mpifort-wrapper-data.txt.in @@ -10,6 +10,7 @@ project_short=OMPI version=@OMPI_VERSION@ language=Fortran compiler_env=FC +compiler_version=@COMPILER_VERSION@ compiler_flags_env=FCFLAGS compiler=@FC@ preprocessor_flags= @@ -24,5 +25,7 @@ libs_static=@OMPI_FORTRAN_USEMPIF08_LIB@ @OMPI_FORTRAN_USEMPI_LIB@ -l@OMPI_LIBMP 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} +# The same includedir is used in mpif77 and mpif90; so link the mod files in there +# but set fmoddir and use it where possible +includedir=${libdir}/../../fortran/@COMPILER_VERSION@/openmpi +libdir=${libdir}/fortran/@FC@