summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-denpo <57649496+h-denpo@users.noreply.github.com>2020-11-30 17:04:14 +0900
committerGitHub <noreply@github.com>2020-11-30 09:04:14 +0100
commit7b587bdda397db8207d271e659a2f861d3643529 (patch)
tree9f67e9c00e55465d4e03b80555dce3378538a3b2
parent4e3fd2687ad0c36ac569551deb99fa4def323ec2 (diff)
downloadspack-7b587bdda397db8207d271e659a2f861d3643529.tar.gz
spack-7b587bdda397db8207d271e659a2f861d3643529.tar.bz2
spack-7b587bdda397db8207d271e659a2f861d3643529.tar.xz
spack-7b587bdda397db8207d271e659a2f861d3643529.zip
ffb: Fixed a recipe error when using the Intel compiler. (#20133)
-rw-r--r--var/spack/repos/builtin/packages/ffb/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/ffb/package.py b/var/spack/repos/builtin/packages/ffb/package.py
index 7f55d74a6e..3a99177f70 100644
--- a/var/spack/repos/builtin/packages/ffb/package.py
+++ b/var/spack/repos/builtin/packages/ffb/package.py
@@ -150,12 +150,14 @@ class Ffb(MakefilePackage):
cxx_fortran_flags = []
if spec.satisfies('%gcc'):
cxx_fortran_flags.append('-lgfortran')
- elif spec.satisfies('%intel'):
- cxx_fortran_flags.expand(['-lifcore', '-limf'])
+ m = FileFilter(editfile)
+ m.filter('-lifcore -limf', ' '.join(cxx_fortran_flags))
elif spec.satisfies('%fj'):
cxx_fortran_flags.append('--linkfortran')
- m = FileFilter(editfile)
- m.filter('-lifcore -limf', ' '.join(cxx_fortran_flags))
+ m = FileFilter(editfile)
+ m.filter('-lifcore -limf', ' '.join(cxx_fortran_flags))
+ elif spec.satisfies('%intel'):
+ pass
def build(self, spec, prefix):
for m in [join_path('make', 'Makeall'),