From be59f2bff0ca9f45db7fd102a276f86f38381829 Mon Sep 17 00:00:00 2001 From: downloadico Date: Mon, 9 Aug 2021 06:05:42 -0600 Subject: [PATCH] libxc: add std flag for Intel (#25281) --- var/spack/repos/builtin/packages/libxc/package.py | 6 ++++-- 1 file 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 @@ def setup_build_environment(self, env): 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')