diff options
Diffstat (limited to 'var')
-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') |