Skip to content

Commit

Permalink
ceph.spec.in: make --with lowmem_builder limit _smp_mflags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
smithfarm committed Nov 24, 2015
1 parent 75bd1a5 commit 095c29c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ceph.spec.in
Expand Up @@ -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}

Expand Down

0 comments on commit 095c29c

Please sign in to comment.