%if 0%{with seastar} && 0%{?rhel}
BuildRequires: gcc-toolset-10-gcc-c++ >= 10.3.1-1.2
%else
+%if 0%{?suse_version}
+BuildRequires: gcc11-c++
+%else
BuildRequires: gcc-c++
%endif
+%endif
%if 0%{with tcmalloc}
# libprofiler did not build on ppc64le until 2.7.90
%if 0%{?fedora} || 0%{?rhel} >= 8
mkdir -p %{_vpath_builddir}
pushd %{_vpath_builddir}
cmake .. \
+%if 0%{?suse_version}
+ -DCMAKE_C_COMPILER=gcc-11 \
+ -DCMAKE_CXX_COMPILER=g++-11 \
+%endif
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
-DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
-DWITH_MANPAGE:BOOL=ON \
-DWITH_PYTHON3:STRING=%{python3_version} \
-DWITH_MGR_DASHBOARD_FRONTEND:BOOL=OFF \
+%if 0%{?suse_version}
+ -DWITH_RADOSGW_SELECT_PARQUET:BOOL=OFF \
+%endif
%if 0%{without ceph_test_package}
-DWITH_TESTS:BOOL=OFF \
%endif
endforeach()
list_replace(boost_with_libs "unit_test_framework" "test")
string(REPLACE ";" "," boost_with_libs "${boost_with_libs}")
+
+ if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
+ set(toolset gcc)
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
+ set(toolset clang)
+ else()
+ message(SEND_ERROR "unknown compiler: ${CMAKE_CXX_COMPILER_ID}")
+ endif()
+
# build b2 and prepare the project-config.jam for boost
set(configure_command
./bootstrap.sh --prefix=<INSTALL_DIR>
- --with-libraries=${boost_with_libs})
+ --with-libraries=${boost_with_libs}
+ --with-toolset=${toolset})
set(b2 ./b2)
if(BOOST_J)
# suppress all debugging levels for b2
list(APPEND b2 -d0)
- if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
- set(toolset gcc)
- elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
- set(toolset clang)
- else()
- message(SEND_ERROR "unknown compiler: ${CMAKE_CXX_COMPILER_ID}")
- endif()
-
set(user_config ${CMAKE_BINARY_DIR}/user-config.jam)
# edit the user-config.jam so b2 will be able to use the specified
# toolset and python