From 095c29c3c41338e7d312dc2bdf5cf85aaf29ad97 Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 23 Nov 2015 13:22:28 +0100 Subject: [PATCH] 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 --- ceph.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 74920d5ee1ea2..2939fef9f3a2a 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} -- 2.39.5