Source: gambas3
Version: 3.5.2-2
Severity: wishlist
Tags: patch

Hi,

gambas3 seems to build fine with multiple build jobs when building.
Thus, my suggestion is to enable the parallel build (reading the number
of jobs from DEB_BUILD_OPTIONS, and adding it to the make invocation)
to speed up the build when requested (see also Policy ยง4.9.1).

Thanks,
-- 
Pino
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,10 @@ CFLAGS:=$(shell dpkg-buildflags --get CF
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+endif
+
 
 configure:
 	dh_autoreconf
@@ -24,7 +28,7 @@ build-indep: build-stamp
 
 build-stamp: config.status
 	dh_testdir
-	$(MAKE) prefix=$(CURDIR)/debian/tmp/usr
+	$(MAKE) $(NJOBS) prefix=$(CURDIR)/debian/tmp/usr
 	touch build-stamp
 
 clean:

Reply via email to