Added support for parallel builds
authorsven.panne@aedion.de <unknown>
Thu, 15 Mar 2007 12:24:57 +0000 (12:24 +0000)
committersven.panne@aedion.de <unknown>
Thu, 15 Mar 2007 12:24:57 +0000 (12:24 +0000)
commitcbb81129fe303877062079d26505e8cbe0f2a7c9
tree43220ef394b7fed51aef3877c68be62f916cc3de
parenta9b1d323161e1f696e364050e6675db71fab64e8
Added support for parallel builds

With this patch, one can define the degree of build parallelism via a 'jobs'
rpm variable. A comfortable way to use this is having a ~/.rpmmacros file with
a line like:

   %jobs 2

Alternatively, one could use a '--define "jobs 2"' command line flag for
rpmbuild. On a Core 2 Duo using 2 jobs brings down the time for a full build
including extralibs from 36m to 27m. If 'jobs' is not defined, a normal
sequential build is done, following the usual conventions on e.g. openSUSE.
ghc.spec.in