ffb: Fixed a recipe error when using the Intel compiler. (#20133)

This commit is contained in:
h-denpo 2020-11-30 17:04:14 +09:00 committed by GitHub
parent 4e3fd2687a
commit 7b587bdda3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,12 +150,14 @@ def edit(self, spec, prefix):
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))
elif spec.satisfies('%intel'):
pass
def build(self, spec, prefix):
for m in [join_path('make', 'Makeall'),