From: Andrew Lewis Date: Tue, 12 Aug 2025 11:24:49 +0000 (+0200) Subject: [Minor] Use clang for build on EL10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5566%2Fhead;p=thirdparty%2Frspamd.git [Minor] Use clang for build on EL10 --- 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 \