Limit _smp_mflags to max 16
- patch from Dennis Gilmore
This commit is contained in:
parent
ab53232420
commit
3a2d93f311
3
macros
3
macros
@ -67,7 +67,8 @@
|
||||
|
||||
%_smp_mflags %([ -z "$RPM_BUILD_NCPUS" ] \\\
|
||||
&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
|
||||
[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-j$RPM_BUILD_NCPUS")
|
||||
if [ "$RPM_BUILD_NCPUS" -gt 16 ]; then echo "-j16"; \\\
|
||||
elif [ "$RPM_BUILD_NCPUS" -gt 1 ]; then echo "-j$RPM_BUILD_NCPUS"; fi)
|
||||
|
||||
#==============================================================================
|
||||
# ---- Build policy macros.
|
||||
|
Loading…
Reference in New Issue
Block a user