From ac4c6ec4210b97886327f2c526957207ca9d8030 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 12 Aug 2025 13:24:49 +0200 Subject: [PATCH] [Minor] Use clang for build on EL10 --- rpm/rspamd.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec index da3565aafc..5d508c17d1 100644 --- a/rpm/rspamd.spec +++ b/rpm/rspamd.spec @@ -28,6 +28,9 @@ BuildRequires: gcc-toolset-10-gcc-c++ BuildRequires: gcc-toolset-12-gcc-c++ %endif %endif +%if 0%{?el10} +BuildRequires: clang +%endif BuildRequires: file-devel BuildRequires: glib2-devel BuildRequires: lapack-devel @@ -120,6 +123,11 @@ rm -f %{_builddir}/luajit-build/lib/*.so || true %endif %if 0%{?el8} -DLINKER_NAME=ld.bfd \ +%endif +%if 0%{?el10} + -DCMAKE_C_COMPILER=clang \ + -DCMAKE_CXX_COMPILER=clang++ \ + -DLINKER_NAME=lld \ %endif -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCONFDIR=%{_sysconfdir}/rspamd \ -- 2.47.3