[Updated] rpmbuild setting for multi core CPU
rpmbuild(8)
is a command to build a RPM file (binary software package.)
Usually rpmbuild's build process is running with only one CPU.
But it is possible to run with more than one CPU.
To run with more than one CPU, edit ~/.rpmmacros
and add:
%__make /usr/bin/make -j 6
Specify -j 6
if you have a hexa-core CPU. Specify -j 4
if dual-core.
Clearer advices that just only -j
make to create as many threads as it feels like.
To get the full story, follow the next article.
See also
- PackagerDocs/Macros ConfigurationusingMacros - in rpm.org wiki
- Re: rpmbuild using more than one cpu - redhat rpm-list, July 1, 2004
man 1 make