From d96cbb0fe9e0685699a82d81458e6152809a8bed Mon Sep 17 00:00:00 2001 From: Liu Zixian Date: Sat, 26 Nov 2022 17:37:50 +0800 Subject: [PATCH] change to clang which is an officially supported compiler --- boost.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/boost.spec b/boost.spec index f5679d3..3f8a06b 100644 --- a/boost.spec +++ b/boost.spec @@ -2,7 +2,7 @@ Name: boost Version: 1.80.0 -Release: 2 +Release: 3 Summary: The free peer-reviewed portable C++ source libraries License: BSL-1.0 URL: http://www.boost.org @@ -44,7 +44,7 @@ Requires: %{name}-timer%{?_isa} = %{version}-%{release} Requires: %{name}-type_erasure%{?_isa} = %{version}-%{release} Requires: %{name}-wave%{?_isa} = %{version}-%{release} -BuildRequires: gcc-c++ +BuildRequires: clang # required by python3 BuildRequires: python3-devel python3-unversioned-command # optional library for asio @@ -274,7 +274,7 @@ as that on the Boost web page (http://www.boost.org/doc/libs/%{version_enc}). %define opt_libs --without-mpi --without-graph_parallel %define b2_options %{opt_build} %{opt_feature} %{opt_libs} %define boost_macros BOOST_NO_AUTO_PTR -./b2 %{b2_options} cxxflags="$RPM_OPT_FLAGS" define=%{boost_macros} +./b2 toolset=clang %{b2_options} cxxflags="$RPM_OPT_FLAGS" define=%{boost_macros} %check (cd status @@ -429,6 +429,9 @@ find libs -name example -exec cp {} boost-example --parents -r \; %{_libdir}/*.a %changelog +* Sat Nov 26 2022 Liu Zixian - 1.80.0-3 +- change toolset to clang + * Sat Nov 26 2022 Liu Zixian - 1.80.0-2 - Backport outcome regression test bugfix -- Gitee