ncl: fix compilation errors with Intel compilers (#17391)
The Intel compilers are more strict and require special command line options (like -std=c99) to properly compile NCL.
This commit is contained in:
parent
f85da868ac
commit
084994db9c
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ def prepare_site_config(self):
|
|||
c2f_flags.extend(['-lgfortran', '-lm'])
|
||||
elif self.compiler.name == 'intel':
|
||||
fc_flags.append('-fp-model precise')
|
||||
cc_flags.append('-fp-model precise')
|
||||
cc_flags.append('-fp-model precise'
|
||||
' -std=c99'
|
||||
' -D_POSIX_C_SOURCE=2 -D_GNU_SOURCE')
|
||||
c2f_flags.extend(['-lifcore', '-lifport'])
|
||||
|
||||
if self.spec.satisfies('%gcc@10:'):
|
||||
|
|
Loading…
Reference in a new issue