diff options
author | sven.panne@aedion.de <unknown> | 2007-03-15 12:24:57 +0000 |
---|---|---|
committer | sven.panne@aedion.de <unknown> | 2007-03-15 12:24:57 +0000 |
commit | cbb81129fe303877062079d26505e8cbe0f2a7c9 (patch) | |
tree | 43220ef394b7fed51aef3877c68be62f916cc3de /ghc.spec.in | |
parent | a9b1d323161e1f696e364050e6675db71fab64e8 (diff) | |
download | haskell-cbb81129fe303877062079d26505e8cbe0f2a7c9.tar.gz |
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.
Diffstat (limited to 'ghc.spec.in')
-rw-r--r-- | ghc.spec.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ghc.spec.in b/ghc.spec.in index a03a759fc4..c50e8052c4 100644 --- a/ghc.spec.in +++ b/ghc.spec.in @@ -83,7 +83,7 @@ needed. %build test -f configure || autoreconf ./configure --prefix=%{_prefix} --mandir=%{_mandir} -make HTML_DIR_INSTALLED=%{_defaultdocdir}/%{name}/libraries/'$(PACKAGE)' +make %{?jobs:-j%jobs} HTML_DIR_INSTALLED=%{_defaultdocdir}/%{name}/libraries/'$(PACKAGE)' make html make -C docs/ext-core ps make -C docs/storage-mgt ps |