summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Le <github@lecris.me>2022-11-29 13:45:28 +0100
committerGitHub <noreply@github.com>2022-11-29 13:45:28 +0100
commitc6ee30497c59d19d78a9ccf48ce54fb7430818d3 (patch)
tree5aaeae1752d08db068c100b8aa4f3a3fe421646e
parent1270ae1526722de44a0d5c50cb0cc49657f5388b (diff)
downloadspack-c6ee30497c59d19d78a9ccf48ce54fb7430818d3.tar.gz
spack-c6ee30497c59d19d78a9ccf48ce54fb7430818d3.tar.bz2
spack-c6ee30497c59d19d78a9ccf48ce54fb7430818d3.tar.xz
spack-c6ee30497c59d19d78a9ccf48ce54fb7430818d3.zip
Fix libxc cflag (#34000)
Using standard c99 should not be specific to intel compilers.
-rw-r--r--var/spack/repos/builtin/packages/libxc/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libxc/package.py b/var/spack/repos/builtin/packages/libxc/package.py
index 4ee0c3e4ef..0b1ec27b98 100644
--- a/var/spack/repos/builtin/packages/libxc/package.py
+++ b/var/spack/repos/builtin/packages/libxc/package.py
@@ -73,8 +73,10 @@ class Libxc(AutotoolsPackage, CudaPackage):
# by Spack, otherwise we may end up with contradictory or invalid flags
# see https://github.com/spack/spack/issues/17794
+ # https://gitlab.com/libxc/libxc/-/issues/430 (configure script does not ensure C99)
+ # TODO: Switch to cmake since this is better supported
+ env.append_flags("CFLAGS", self.compiler.c99_flag)
if "%intel" in self.spec:
- env.append_flags("CFLAGS", "-std=c99")
if which("xiar"):
env.set("AR", "xiar")