Skip to content

Commit 05fadfe

Browse files
committed
cray ftn: modify fortran module loc checker
to support the Cray Fortran compiler. Cray Fortran compiler does not contain all symbol info in the module file, have to link with the *.o created as part of module file compilation. Signed-off-by: Howard Pritchard <[email protected]>
1 parent 119b1c3 commit 05fadfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/ompi_fortran_find_module_include_flag.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ EOF
6565
ofi_module_flag=
6666
for flag in $ofi_possible_flags; do
6767
if test "$ofi_module_flag" = ""; then
68-
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS],
68+
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o ${flag}subdir $LDFLAGS $LIBS],
6969
[AS_VAR_SET(fortran_inc_var, [$flag])
70-
ofi_module_flag="$flag"])
70+
ofi_module_flag="$flag"],[])
7171
fi
7272
done
7373
cd ..

0 commit comments

Comments
 (0)