Subject: [PATCH] libreoffice: honor '--cores=...' during build.
From: [email-masked]
To: [email-masked]
Cc: Eric Bavier <[email-masked]>
Date: Tue, 30 Oct 2018 20:42:10 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Eric Bavier <[email-masked]>

* gnu/packages/libreoffice.scm (libreoffice)[configure-flags]: Add
'--with-parallelism' flag.
---
 gnu/packages/libreoffice.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index e5ab5c507..ad8ff24f2 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -1093,6 +1093,8 @@ converting QuarkXPress file format.  It supports versions 3.1 to 4.1.")
         (list
           "--enable-release-build"
           "--enable-verbose"
+          ;; Avoid using all cpu cores by default
+          (format #f "--with-parallelism=~d" (parallel-job-count))
           "--disable-fetch-external" ; disable downloads
           "--with-system-libs" ; enable all --with-system-* flags
           (string-append "--with-boost-libdir="
-- 
2.19.1