From 35dab95b76596eb9f1684146d731a2e42762a197 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 27 Apr 2016 12:27:37 -0400 Subject: [PATCH] debian: Attempt to fix parrelization This commit fixes some quagga build issues such that you can now use -j in your sbuild line. Signed-off-by: Donald Sharp Signed-off-by: Jon Toppins --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index a2c7a81315..f5e79e337c 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,14 @@ else $(warning "DEBIAN: SNMP disabled, see README.Debian") endif +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + DEBIAN_JOBS := $(subst parallel=,,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + +ifdef DEBIAN_JOBS +MAKEFLAGS += -j$(DEBIAN_JOBS) +endif + %: dh $@ --with=systemd --parallel --with autoreconf --dbg-package=quagga-dbg --list-missing if [ -e config.status ]; then \ -- 2.39.5