export RPM_BUILD_NCPUS to make

This commit is contained in:
Jens Petersen 2010-10-01 14:49:38 +10:00
parent bb76f118e1
commit 265cc3642b

View File

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