]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: make --with lowmem_builder limit _smp_mflags 6691/head
authorNathan Cutler <ncutler@suse.com>
Mon, 23 Nov 2015 12:22:28 +0000 (13:22 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 24 Nov 2015 14:45:40 +0000 (15:45 +0100)
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 <ncutler@suse.com>
ceph.spec.in

index 74920d5ee1ea2f4f80f7ba8cb7ac6c585ba16194..2939fef9f3a2a67074ec83473eb1a8cbe9813587 100644 (file)
@@ -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}