File: mpifort.patch

package info (click to toggle)
openmpi 5.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 201,692 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (28 lines) | stat: -rw-r--r-- 1,079 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Search for mod files in $FMODDIR directory
 Also look in a fortran-ABI-specific directory for libs
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2024-11-08
Forwarded: not-needed


--- a/ompi/tools/wrappers/mpifort-wrapper-data.txt.in
+++ b/ompi/tools/wrappers/mpifort-wrapper-data.txt.in
@@ -14,7 +14,7 @@
 compiler=@FC@
 preprocessor_flags=
 compiler_flags_prefix=@OMPI_WRAPPER_FCFLAGS_PREFIX@
-compiler_flags=@OMPI_WRAPPER_FCFLAGS@
+compiler_flags=-I${libdir}/../../fortran/gfortran-mod-15/openmpi -I${includedir}
 linker_flags=@OMPI_WRAPPER_FC_LDFLAGS@
 linker_flags_static=@OMPI_WRAPPER_FC_LDFLAGS_STATIC@
 libs=@OMPI_WRAPPER_FC_LIBS@
@@ -22,5 +22,8 @@
 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@
+# The same includedir is used in mpif77 and mpif90; so link the mod files in there
+# but set fmoddir and use it where possible
+fmoddir=${libdir}/../../fortran/gfortran-mod-15
 includedir=${includedir}
-libdir=${libdir}
+libdir=${libdir}