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:
parent
703a4f9a95
commit
6e689ce0cb
5
nss.spec
5
nss.spec
@ -299,7 +299,10 @@ export POLICY_FILE="nss.config"
|
|||||||
# location of the policy file
|
# location of the policy file
|
||||||
export POLICY_PATH="/etc/crypto-policies/back-ends"
|
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
|
# build the man pages clean
|
||||||
pushd ./nss
|
pushd ./nss
|
||||||
|
Loading…
Reference in New Issue
Block a user