[ghc] smp build with max 4 cpus
Jens Petersen
petersen at fedoraproject.org
Fri Oct 1 03:57:31 UTC 2010
commit 9a030f8971675576f0d12e832ae10597ed5a06fc
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Oct 1 13:57:32 2010 +1000
smp build with max 4 cpus
ghc.spec | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/ghc.spec b/ghc.spec
index d17113e..243e892 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -144,8 +144,9 @@ export CFLAGS="${CFLAGS:-%optflags}"
%{?with_shared:--enable-shared}
# 8 cpus seems to break build
+RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
+[ "$RPM_BUILD_NCPUS" -gt 4 ] && RPM_BUILD_NCPUS=4
make %{_smp_mflags}
-#make
%install
rm -rf $RPM_BUILD_ROOT
@@ -281,7 +282,7 @@ fi
* Thu Sep 30 2010 Jens Petersen <petersen at redhat.com> - 6.12.3-6
- move gtk2hs obsoletes to ghc-glib and ghc-gtk
- drop happy buildrequires
-- try smp build again
+- smp build with max 4 cpus
* Fri Jul 30 2010 Jens Petersen <petersen at redhat.com> - 6.12.3-5
- obsolete old gtk2hs packages for smooth upgrades
More information about the scm-commits
mailing list