From 6a9e81057bd7e2e19c59b90680a3bd6c4270104d Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 23 Mar 2017 16:36:53 -0700 Subject: [PATCH] debian/rules: invoke cmake with -DBOOST_J Allow boost build during toplevel cmake from Debian package build to benefit from multiple processors. Should speed build a lot on many-proc machines (say, arm64). Use argument passed to debhelper. Signed-off-by: Dan Mick --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index d529fdc44b3b3..58f3dc579b912 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,10 @@ extraopts += -DWITH_CEPHFS_JAVA=ON extraopts += -DCMAKE_INSTALL_LIBDIR=/usr/lib extraopts += -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib extraopts += -DCMAKE_INSTALL_SYSCONFDIR=/etc +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + extraopts += -DBOOST_J=$(NUMJOBS) +endif ifeq ($(DEB_HOST_ARCH), armel) # armel supports ARMv4t or above instructions sets. -- 2.39.5