]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: Use _smp_mflags instead of _NPROCESSORS_ONLN
authorNathan Cutler <ncutler@suse.com>
Fri, 2 Oct 2015 13:30:41 +0000 (15:30 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 6 Oct 2015 12:40:41 +0000 (14:40 +0200)
Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index 8f7e3891107c330571ecdb84a713cdd1588791e3..a0835b45b94c7f283b2fe92b2cf3deb70718dc87 100644 (file)
@@ -582,13 +582,13 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
                CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
 
 
-make -j$(getconf _NPROCESSORS_ONLN)
+make %{?_smp_mflags}
 
 
 %if 0%{with tests}
 %check
 # run in-tree unittests
-make -j$(getconf _NPROCESSORS_ONLN) check-local
+make %{?_smp_mflags} check-local
 
 %endif