From ab5135db1cb29eaef9c766c6d3372b5fdbe81c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Simonis?= Date: Tue, 22 Oct 2019 23:25:03 +0200 Subject: [PATCH] Boost package: Fix iostream autodetect libraries (#12440) Boost iostream autodetects the compression libraries libzstd and liblzma outside of the Spack environment. This commit disables mentioned libraries. In the future if the Spack zstd/lzma packages were added as dependencies of the Spack Boost package, additional work could be done to build Boost with the Spack-built versions of these libraries. --- var/spack/repos/builtin/packages/boost/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index 40fda7c362d..094a96954c2 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -305,7 +305,9 @@ def determine_b2_options(self, spec, options): '-s', 'BZIP2_INCLUDE=%s' % spec['bzip2'].prefix.include, '-s', 'BZIP2_LIBPATH=%s' % spec['bzip2'].prefix.lib, '-s', 'ZLIB_INCLUDE=%s' % spec['zlib'].prefix.include, - '-s', 'ZLIB_LIBPATH=%s' % spec['zlib'].prefix.lib]) + '-s', 'ZLIB_LIBPATH=%s' % spec['zlib'].prefix.lib, + '-s', 'NO_LZMA=1', + '-s', 'NO_ZSTD=1']) link_types = ['static'] if '+shared' in spec: