Skip to content

Commit c6ee304

Browse files
authored
Fix libxc cflag (#34000)
Using standard c99 should not be specific to intel compilers.
1 parent 1270ae1 commit c6ee304

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

var/spack/repos/builtin/packages/libxc/package.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ def setup_build_environment(self, env):
7373
# by Spack, otherwise we may end up with contradictory or invalid flags
7474
# see https://github.com/spack/spack/issues/17794
7575

76+
# https://gitlab.com/libxc/libxc/-/issues/430 (configure script does not ensure C99)
77+
# TODO: Switch to cmake since this is better supported
78+
env.append_flags("CFLAGS", self.compiler.c99_flag)
7679
if "%intel" in self.spec:
77-
env.append_flags("CFLAGS", "-std=c99")
7880
if which("xiar"):
7981
env.set("AR", "xiar")
8082

0 commit comments

Comments
 (0)