export RPM_BUILD_NCPUS to make
This commit is contained in:
parent
bb76f118e1
commit
265cc3642b
1
ghc.spec
1
ghc.spec
@ -146,6 +146,7 @@ export CFLAGS="${CFLAGS:-%optflags}"
|
|||||||
# 4 cpus or more sometimes breaks build
|
# 4 cpus or more sometimes breaks build
|
||||||
RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
RPM_BUILD_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN)
|
||||||
[ "$RPM_BUILD_NCPUS" -gt 2 ] && RPM_BUILD_NCPUS=2
|
[ "$RPM_BUILD_NCPUS" -gt 2 ] && RPM_BUILD_NCPUS=2
|
||||||
|
export RPM_BUILD_NCPUS
|
||||||
make %{_smp_mflags}
|
make %{_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
Reference in New Issue
Block a user