export RPM_BUILD_NCPUS to make

epel9
Jens Petersen 14 years ago
parent 3e0293d96e
commit 0b9fb54ac7

@ -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…
Cancel
Save