From: Dan Mick Date: Fri, 24 Mar 2017 02:34:28 +0000 (-0700) Subject: ceph.spec.in: move lowmem_build setting of _smp_mflags X-Git-Tag: v12.0.2~312^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1524daab38556467cce009bc904308ca660a3833;p=ceph.git ceph.spec.in: move lowmem_build setting of _smp_mflags Signed-off-by: Dan Mick --- diff --git a/ceph.spec.in b/ceph.spec.in index 3aa1b68fc508..884050ad648f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -779,6 +779,12 @@ export CXXFLAGS="$RPM_OPT_FLAGS" env | sort +%if %{with lowmem_builder} +%if 0%{?jobs} > 8 +%define _smp_mflags -j8 +%endif +%endif + mkdir build cd build cmake .. \ @@ -820,12 +826,6 @@ cmake .. \ -DWITH_OCF=ON %endif -%if %{with lowmem_builder} -%if 0%{?jobs} > 8 -%define _smp_mflags -j8 -%endif -%endif - make %{?_smp_mflags}