[Pkg-mc-commits] r210 - branch/cdbs/debian

Denis Briand narcan-guest at alioth.debian.org
Fri Jul 3 13:49:12 UTC 2009


Author: narcan-guest
Date: 2009-07-03 13:49:09 +0000 (Fri, 03 Jul 2009)
New Revision: 210

Modified:
   branch/cdbs/debian/changelog
   branch/cdbs/debian/rules
Log:
improve build time on i386 and amd64 multi CPU


Modified: branch/cdbs/debian/changelog
===================================================================
--- branch/cdbs/debian/changelog	2009-07-03 13:12:02 UTC (rev 209)
+++ branch/cdbs/debian/changelog	2009-07-03 13:49:09 UTC (rev 210)
@@ -61,6 +61,7 @@
   * Add imagemagick in Recommends for mc binary package,
     thanks to Olaf van der Spek (Closes: #534681).
   * Add Vcs fields in debian/control
+  * Improve build time on i386 and amd64 multi CPU.
 
  -- Patrick Winnertz <winnie at debian.org>  Tue, 30 Jun 2009 23:54:42 +0200
 

Modified: branch/cdbs/debian/rules
===================================================================
--- branch/cdbs/debian/rules	2009-07-03 13:12:02 UTC (rev 209)
+++ branch/cdbs/debian/rules	2009-07-03 13:49:09 UTC (rev 210)
@@ -7,6 +7,13 @@
 DEB_DH_STRIP_ARGS := --dbg-package=mc-dbg
 DEB_CONFIGURE_EXTRA_FLAGS := --with-glib2 --without-ext2undel --enable-charset --without-samba --with-screen=slang
 
+#improve build time on i386 and amd64 multi CPU.
+DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ifneq (,$(filter $(DEB_BUILD_ARCH),i386 amd64))
+NUMJOBS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
+MAKEFLAGS += -j$(NUMJOBS)
+endif
+
 cleanbuilddir/mc::
 	rm -f po/*.gmo
 	rm -f po/stamp-po




More information about the Pkg-mc-commits mailing list