From 6e689ce0cb97f3c82973a3bfec53a2a02706f442 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 16 Jan 2020 12:25:28 +0100 Subject: [PATCH] pass %{_smp_mflags} to `make` to speed up the build I tried an uncached build of nss on Fedora 30 VM with 8 CPU cores and the build time was reduced with this patch from 540 s to 250 s of wall-clock time. --- nss.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nss.spec b/nss.spec index 4ac163b..992c111 100644 --- a/nss.spec +++ b/nss.spec @@ -299,7 +299,10 @@ export POLICY_FILE="nss.config" # location of the policy file export POLICY_PATH="/etc/crypto-policies/back-ends" -make -C ./nss +make %{?_smp_mflags} -C ./nss/lib export +make %{?_smp_mflags} -C ./nss/lib +make %{?_smp_mflags} -C ./nss/cmd/lib +make %{?_smp_mflags} -C ./nss # build the man pages clean pushd ./nss