boost: At least with older Xcode, boost can't build with lzma (#34075)

Reference: https://lists.boost.org/Archives/boost/2019/11/247380.php
As reported at the end of #33998 and this link, liblzma on older Xcode on
MacOSX 10 misses _lzma_cputhreads, so boost's can't use liblzma on those.
This commit is contained in:
Bernhard Kaindl 2022-11-23 11:36:22 +01:00 committed by GitHub
parent 73fe21ba41
commit 09f2b6f5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -524,6 +524,9 @@ def determine_b2_options(self, spec, options):
"ZSTD_LIBPATH=%s" % spec["zstd"].prefix.lib,
]
)
# At least with older Xcode, _lzma_cputhreads is missing (#33998)
if "platform=darwin" in self.spec:
options.extend(["-s", "NO_LZMA=1"])
link_types = ["static"]
if "+shared" in spec: