From: Nathan Cutler Date: Mon, 23 Nov 2015 12:22:28 +0000 (+0100) Subject: ceph.spec.in: make --with lowmem_builder limit _smp_mflags X-Git-Tag: v10.0.1~9^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=095c29c3c41338e7d312dc2bdf5cf85aaf29ad97;p=ceph.git ceph.spec.in: make --with lowmem_builder limit _smp_mflags The limit, -j8, may seem arbitrary but works nicely in the openSUSE Build Service. http://tracker.ceph.com/issues/13858 Fixes: #13858 Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index 74920d5ee1ea..2939fef9f3a2 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -590,6 +590,11 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` %{?_with_tcmalloc} \ CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" +%if %{with lowmem_builder} +%if 0%{?jobs} > 8 +%define _smp_mflags -j8 +%endif +%endif make %{?_smp_mflags}