From: Dan Mick Date: Thu, 23 Mar 2017 23:36:53 +0000 (-0700) Subject: debian/rules: invoke cmake with -DBOOST_J X-Git-Tag: v12.0.2~312^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a9e81057bd7e2e19c59b90680a3bd6c4270104d;p=ceph.git 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 --- 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.