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.
This commit is contained in:
Kamil Dudka 2020-01-16 12:25:28 +01:00 committed by Daiki Ueno
parent 703a4f9a95
commit 6e689ce0cb
1 changed files with 4 additions and 1 deletions

View File

@ -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