[Glibc-bsd-commits] r5273 - trunk/ufsutils/debian

rmh at alioth.debian.org rmh at alioth.debian.org
Sun Dec 29 21:30:09 UTC 2013


Author: rmh
Date: 2013-12-29 21:30:09 +0000 (Sun, 29 Dec 2013)
New Revision: 5273

Modified:
   trunk/ufsutils/debian/changelog
   trunk/ufsutils/debian/rules
Log:
Correctly setup BSD version of MAKEFLAGS to support parallel builds.

Modified: trunk/ufsutils/debian/changelog
===================================================================
--- trunk/ufsutils/debian/changelog	2013-12-29 20:05:38 UTC (rev 5272)
+++ trunk/ufsutils/debian/changelog	2013-12-29 21:30:09 UTC (rev 5273)
@@ -1,6 +1,7 @@
 ufsutils (9.2-4) UNRELEASED; urgency=low
 
   * Fetch source code securely (https) in get-orig-source.
+  * Correctly setup BSD version of MAKEFLAGS to support parallel builds.
 
  -- Robert Millan <rmh at debian.org>  Sat, 07 Dec 2013 23:22:58 +0100
 

Modified: trunk/ufsutils/debian/rules
===================================================================
--- trunk/ufsutils/debian/rules	2013-12-29 20:05:38 UTC (rev 5272)
+++ trunk/ufsutils/debian/rules	2013-12-29 21:30:09 UTC (rev 5273)
@@ -21,6 +21,13 @@
 	CXXFLAGS += -O2
 endif
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+
+	# Do not mess with MAKEFLAGS until we transfer control to BSD make (see below)
+	BSD_MAKEFLAGS += -j$(NUMJOBS)
+endif
+
 full_version	:= $(shell dpkg-parsechangelog | grep ^Version: | sed -e 's/^.*: //g')
 tar_version	:= $(shell echo $(full_version) | sed -e 's/-.*//g')
 svn_revision	:= $(shell echo $(full_version) | sed -e 's/.*~svn\([0-9]*\)-[0-9]*/\1/g')
@@ -39,7 +46,9 @@
 
 PATH := /usr/lib/freebsd:$(PATH)
 DESTDIR = $(CURDIR)/debian/tmp
-PMAKE = COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS)" \
+PMAKE = \
+	MAKEFLAGS=$(BSD_MAKEFLAGS) \
+	COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS)" \
         NO_WERROR=1 NOGCCERROR=1 NOSHARED=NO NO_SHARED=NO \
         DESTDIR=$(DESTDIR) make
 




More information about the Glibc-bsd-commits mailing list