Better use
%if 0%{?jobs} > 2 %define jobs 2 %endif make %{?_smp_mflags} -j%jobs
no isn't better ... is evaluated as "make -j(ncpus) -j2" terrible idea
from rpm 4.12.0 ( for example openSUSE:Tumbleweed) is possible use
"%_smp_ncpus_max" to limit max value of %_smp_mflags -->
%_smp_ncpus_max 3
%make %{?_smp_mflags}
is evaluated as "make -j3" or lower
On 13 February 2016 at 18:44, Jan Engelhardt
On Saturday 2016-02-13 18:27, Dave Plater wrote:
sorry I missed a part: # A further attempt to stop out of memory failures. export jobs=$(getconf _NPROCESSORS_ONLN)
%define jobs %(echo $jobs) %if 0%{?jobs} > 2 %define _smp_mflags -j2 %endif make %{?_smp_mflags}
Better use
%if 0%{?jobs} > 2 %define jobs 2 %endif make %{?_smp_mflags} -j%jobs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org