libelf: fix build with GCC 14 (#45226)
This commit is contained in:
parent
3bf1a03760
commit
0752d94bbf
@ -55,7 +55,7 @@ def install(self, spec, prefix):
|
|||||||
|
|
||||||
def flag_handler(self, name, flags):
|
def flag_handler(self, name, flags):
|
||||||
if name == "cflags":
|
if name == "cflags":
|
||||||
if self.spec.satisfies("%clang@16:"):
|
if self.spec.satisfies("%clang@16:") or self.spec.satisfies("%gcc@14:"):
|
||||||
flags.append("-Wno-error=implicit-int")
|
flags.append("-Wno-error=implicit-int")
|
||||||
flags.append("-Wno-error=implicit-function-declaration")
|
flags.append("-Wno-error=implicit-function-declaration")
|
||||||
return (flags, None, None)
|
return (flags, None, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user