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:
Cristian Di Pietrantonio 2023-08-09 21:57:43 +08:00 committed by GitHub
parent 39d4c402d5
commit 175a65dfba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)