(as I'm lazy I'll cut and paste from one of my post on gplus)
on my work machine, as I use multiple jobs when I build packages, I've got this line in /etc/sbopkg/sbopkg.conf
Code:
export MAKEFLAGS=${MAKEFLAGS:--j8}
or you can pass it also when invoking it
Code:
sbopkg -i whatever:MAKEFLAGS=-j8
if not using sbopkg and doing a manual build
Code:
MAKEFLAGS=-j8 ./whatever.SlackBuild
to find the available core/threads you can also use nproc
Code:
MAKEFLAGS=-j$(nproc)
if re/building official Slackware stuff the default number of jobs is already 7 in most cases (so I don't feel like changing it to 8), but if I wish to change it
Code:
NUMJOBS=-j8 ./whateverelse.SlackBuild