summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/json-c/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/json-c/package.py b/var/spack/repos/builtin/packages/json-c/package.py
index a62e0323ea..d13bddecb8 100644
--- a/var/spack/repos/builtin/packages/json-c/package.py
+++ b/var/spack/repos/builtin/packages/json-c/package.py
@@ -42,6 +42,13 @@ class JsonC(CMakePackage, AutotoolsPackage):
def patch(self):
filter_file("-Werror", "", "CMakeLists.txt")
+ def flag_handler(self, name, flags):
+ iflags = []
+ if name == "cflags":
+ if self.spec.satisfies("%oneapi"):
+ iflags.append("-Wno-error=implicit-function-declaration")
+ return (iflags, None, None)
+
@run_after("install")
def darwin_fix(self):
# The shared library is not installed correctly on Darwin; fix this