aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpm/rspamd.spec4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec
index 91d7cc7dc..1596622fa 100644
--- a/rpm/rspamd.spec
+++ b/rpm/rspamd.spec
@@ -80,9 +80,11 @@ git clone -b v2.1 https://luajit.org/git/luajit-2.0.git %{_builddir}/luajit-src
%build
%if 0%{?el7}
source /opt/rh/devtoolset-10/enable
-%elif 0%{?el8}
+%else
+%if 0%{?el8}
source /opt/rh/gcc-toolset-10/enable
%endif
+%endif
%if 0%{getenv:LUAJIT}
pushd %{_builddir}/luajit-src && make clean && make %{?_smp_mflags} CC="gcc -fPIC" PREFIX=%{_builddir}/luajit-build && make install PREFIX=%{_builddir}/luajit-build ; popd