summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDaryl W. Grunau <DarylGrunau@gmail.com>2020-08-24 14:44:20 -0600
committerGitHub <noreply@github.com>2020-08-24 15:44:20 -0500
commitf5102cd5824796355842653c84a0b6fa3fe6bf0a (patch)
treed8999b4e3e246ad81a46ba4c6d9632fdbbe80b83 /var
parent17f7d9f44c7d5d41b3ff44ab1a64ba2190cfe9ea (diff)
downloadspack-f5102cd5824796355842653c84a0b6fa3fe6bf0a.tar.gz
spack-f5102cd5824796355842653c84a0b6fa3fe6bf0a.tar.bz2
spack-f5102cd5824796355842653c84a0b6fa3fe6bf0a.tar.xz
spack-f5102cd5824796355842653c84a0b6fa3fe6bf0a.zip
call the universal 'mpifc' instead of hardcode 'mpif90' (#18162)
Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index d5d595142f..259f98785b 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -430,7 +430,6 @@ class Trilinos(CMakePackage):
# Force Trilinos to use the MPI wrappers instead of raw compilers
# this is needed on Apple systems that require full resolution of
# all symbols when linking shared libraries
- mpi_bin = spec['mpi'].prefix.bin
options.extend([
define('CMAKE_C_COMPILER', spec['mpi'].mpicc),
define('CMAKE_CXX_COMPILER', spec['mpi'].mpicxx),
@@ -690,7 +689,7 @@ class Trilinos(CMakePackage):
if '+mpi' in spec:
libgfortran = os.path.dirname(os.popen(
'%s --print-file-name libgfortran.a' %
- join_path(mpi_bin, 'mpif90')).read())
+ spec['mpi'].mpifc).read())
options.append(define(
'Trilinos_EXTRA_LINK_FLAGS',
'-L%s/ -lgfortran' % (libgfortran),