libzmq: do not treat warnings as errors during compilation. (#39325)
The package won't compile with newer compilers because warnings are converted to errors. Hence, disable such conversion. Co-authored-by: Cristian Di Pietrantonio <cdipietrantonio@pawsey.org.au>
This commit is contained in:
parent
39d4c402d5
commit
175a65dfba
@ -107,6 +107,11 @@ def configure_args(self):
|
||||
config_args.extend(self.enable_or_disable("drafts"))
|
||||
config_args.extend(self.enable_or_disable("libbsd"))
|
||||
config_args.extend(self.enable_or_disable("libunwind"))
|
||||
# the package won't compile with newer compilers because warnings
|
||||
# are converted to errors. Hence, disable such conversion.
|
||||
# this option was only added in version 4.2.3.
|
||||
if self.spec.version >= Version("4.2.3"):
|
||||
config_args.append("--disable-Werror")
|
||||
|
||||
if "+libsodium" in self.spec:
|
||||
config_args.append("--with-libsodium=" + self.spec["libsodium"].prefix)
|
||||
|
Loading…
Reference in New Issue
Block a user