Browse Source

[Minor] Use clang for build on EL10

pull/5566/head
Andrew Lewis 3 months ago
parent
commit
ac4c6ec421
  1. 8
      rpm/rspamd.spec

8
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 \

Loading…
Cancel
Save