diff options
author | downloadico <download@carc.unm.edu> | 2021-08-09 06:05:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 14:05:42 +0200 |
commit | be59f2bff0ca9f45db7fd102a276f86f38381829 (patch) | |
tree | 178e2d535b77063deec36c0ef18bdd172c048c08 | |
parent | d4df3b31fb5580233afbb4bf652d3dde86315ba9 (diff) | |
download | spack-be59f2bff0ca9f45db7fd102a276f86f38381829.tar.gz spack-be59f2bff0ca9f45db7fd102a276f86f38381829.tar.bz2 spack-be59f2bff0ca9f45db7fd102a276f86f38381829.tar.xz spack-be59f2bff0ca9f45db7fd102a276f86f38381829.zip |
libxc: add std flag for Intel (#25281)
-rw-r--r-- | var/spack/repos/builtin/packages/libxc/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libxc/package.py b/var/spack/repos/builtin/packages/libxc/package.py index eeec410f9d..cdfcc52433 100644 --- a/var/spack/repos/builtin/packages/libxc/package.py +++ b/var/spack/repos/builtin/packages/libxc/package.py @@ -79,8 +79,10 @@ class Libxc(AutotoolsPackage, CudaPackage): env.append_flags('CFLAGS', optflags) env.append_flags('FCFLAGS', optflags) - if '%intel' in self.spec and which('xiar'): - env.set('AR', 'xiar') + if '%intel' in self.spec: + env.append_flags('CFLAGS', '-std=c99') + if which('xiar'): + env.set('AR', 'xiar') if '%aocc' in self.spec: env.append_flags('FCFLAGS', '-fPIC') |