summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libelf/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libelf/package.py b/var/spack/repos/builtin/packages/libelf/package.py
index e14b97b8ee..5632464cc7 100644
--- a/var/spack/repos/builtin/packages/libelf/package.py
+++ b/var/spack/repos/builtin/packages/libelf/package.py
@@ -50,3 +50,10 @@ class Libelf(AutotoolsPackage):
def install(self, spec, prefix):
make("install", parallel=False)
+
+ def flag_handler(self, name, flags):
+ if name == "cflags":
+ if self.spec.satisfies("%clang@16:"):
+ flags.append("-Wno-error=implicit-int")
+ flags.append("-Wno-error=implicit-function-declaration")
+ return (flags, None, None)