From: Gianfranco Costamagna Date: Tue, 11 Sep 2018 19:11:34 +0000 (+0200) Subject: Limit parallel builds on Ubuntu X-Git-Tag: archive/raspbian/1.14.0+dfsg-2+rpi1^2~143 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1160db262121fbb75be7670e8ea84b631639f69f;p=pcl.git Limit parallel builds on Ubuntu Limit to 2 on amd64, arm64 and ppc64el (they go OOM). --- diff --git a/debian/rules b/debian/rules index 32b4fd97..c0391a1e 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,18 @@ ifneq (,$(filter $(DEB_BUILD_ARCH),mips mipsel)) CXXFLAGS+=--param ggc-min-expand=20 endif +ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) + ifeq ($(DEB_HOST_ARCH),amd64) + export DEB_BUILD_MAINT_OPTIONS=parallel=2 + endif + ifeq ($(DEB_HOST_ARCH),arm64) + export DEB_BUILD_MAINT_OPTIONS=parallel=2 + endif + ifeq ($(DEB_HOST_ARCH),ppc64el) + export DEB_BUILD_MAINT_OPTIONS=parallel=2 + endif +endif + BUILD_DOC = $(if $(shell dh_listpackages | grep libpcl-doc),-DWITH_DOCS=ON) # Multiarch.