diff options
-rw-r--r-- | var/spack/repos/builtin/packages/sw4lite/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/sw4lite/package.py b/var/spack/repos/builtin/packages/sw4lite/package.py index 7606deaa2a..b2cf3cb29c 100644 --- a/var/spack/repos/builtin/packages/sw4lite/package.py +++ b/var/spack/repos/builtin/packages/sw4lite/package.py @@ -48,6 +48,8 @@ class Sw4lite(MakefilePackage): depends_on('lapack') depends_on('mpi') + parallel = False + @property def build_targets(self): targets = [] @@ -81,7 +83,11 @@ class Sw4lite(MakefilePackage): targets.append('EXTRA_CXX_FLAGS=') targets.append('EXTRA_FORT_FLAGS=') lapack_blas = spec['lapack'].libs + spec['blas'].libs - targets.append('EXTRA_LINK_FLAGS={0}'.format(lapack_blas.ld_flags)) + if spec.satisfies('%gcc'): + targets.append('EXTRA_LINK_FLAGS={0} -lgfortran' + .format(lapack_blas.ld_flags)) + else: + targets.append('EXTRA_LINK_FLAGS={0}'.format(lapack_blas.ld_flags)) return targets |