]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Some more fixes to rpm spec
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 8 Feb 2023 12:45:48 +0000 (12:45 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 8 Feb 2023 12:45:48 +0000 (12:45 +0000)
rpm/rspamd.spec

index 19f9e3634a7962e42b9b5a361f685ce3d18feacd..ff26567257c0c81a6b984b24e8d4f70350f0bc92 100644 (file)
@@ -58,9 +58,10 @@ lua.
 %else
 %{__cmake} \
 %endif
-        -DCMAKE_BUILD_TYPE="Release" \
+        -DCMAKE_BUILD_TYPE=RelWithDebInfo \
         -DCMAKE_C_FLAGS_RELEASE="%{optflags}" \
         -DCMAKE_CXX_FLAGS_RELEASE="%{optflags}" \
+        -DENABLE_LTO=ON \
 %if 0%{?fedora} >= 36
         -DLINKER_NAME=/usr/bin/ld.bfd \
 %endif
@@ -90,7 +91,7 @@ lua.
 %endif
         -DENABLE_BLAS=ON
 
-%{__make} %{?jobs:-j%jobs}
+%{__make} %{?_smp_mflags}
 
 %install
 %{__make} install DESTDIR=%{buildroot} INSTALLDIRS=vendor