Skip to content

Commit 441bad9

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 441bad9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/ompi_fortran_find_module_include_flag.m4

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ dnl University of Stuttgart. All rights reserved.
1111
dnl Copyright (c) 2004-2005 The Regents of the University of California.
1212
dnl All rights reserved.
1313
dnl Copyright (c) 2010-2012 Cisco Systems, Inc. All rights reserved.
14+
dnl Copyright (c) 2019 Triad National Security, LLC. All rights
15+
dnl reserved.
1416
dnl $COPYRIGHT$
1517
dnl
1618
dnl Additional copyrights may follow
@@ -67,7 +69,12 @@ EOF
6769
if test "$ofi_module_flag" = ""; then
6870
OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 ${flag}subdir $LDFLAGS $LIBS],
6971
[AS_VAR_SET(fortran_inc_var, [$flag])
70-
ofi_module_flag="$flag"])
72+
ofi_module_flag="$flag"],
73+
dnl try and see if we need to link in a possible object file
74+
[OPAL_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftest.f90 subdir/conftest-module.o \
75+
${flag}subdir $LDFLAGS $LIBS],
76+
[AS_VAR_SET(fortran_inc_var, [$flag])
77+
ofi_module_flag="$flag"],[])])
7178
fi
7279
done
7380
cd ..

0 commit comments

Comments
 (0)