gcc: fix package.py for gcc@:9 (#49173)

This commit is contained in:
Melven Roehrig-Zoellner 2025-02-24 23:44:04 +01:00 committed by GitHub
parent 738c73975e
commit 13524fa8ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -818,7 +818,7 @@ def configure_args(self):
if self.version >= Version("6"):
options.append("--with-system-zlib")
if spec.satisfies("^zstd"):
if self.version >= Version("10"):
options.append("--with-zstd-include={0}".format(spec["zstd"].headers.directories[0]))
options.append("--with-zstd-lib={0}".format(spec["zstd"].libs.directories[0]))