From 7b587bdda397db8207d271e659a2f861d3643529 Mon Sep 17 00:00:00 2001 From: h-denpo <57649496+h-denpo@users.noreply.github.com> Date: Mon, 30 Nov 2020 17:04:14 +0900 Subject: ffb: Fixed a recipe error when using the Intel compiler. (#20133) --- var/spack/repos/builtin/packages/ffb/package.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'var') 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'), -- cgit v1.2.3-70-g09d2