profile: looks like my auto MAKEOPTS setting picked -j0 on single core machines, score one bug fix based on using an rpi

This commit is contained in:
Zero_Chaos 2013-10-08 17:39:59 +00:00
parent 4f30859a7f
commit 02066d147b

View file

@ -1,5 +1,6 @@
#if [[ $CATEGORY/$PN == sys-auth/polkit ]] ; then FEATURES=${FEATURES/multilib-strict/} ; fi
local CORES="$(grep -c ^proc /proc/cpuinfo)"
if [[ "${CORES}" -eq "0" ]] ; then CORES="1" ; fi
echo ${MAKEOPTS} | grep -q -e -j || export MAKEOPTS="-j${CORES} -l${CORES}"
#by the time this is parsed, EMERGE_DEFAULT_OPTS are already applied, this file is too late