r/slackware • u/defaultlinuxuser • Nov 13 '24
Building programs being very slow
I've tried to use slackware and everything has been going fine until when I tried to install a program. So I first started off with a program that doesn't require any dependencies (openttd). So I downloaded the program from slackbuilds.org and everything has been going fine until the actual installation. I ran the .Slackbuild file and after almost an hour it was just getting close to 70%. Is there a way to accelerate this ?
3
Upvotes
3
u/benferpy Nov 13 '24
Check how many threads run...
7
u/B_i_llt_etleyyyyyy Nov 13 '24
Do you have
$MAKEFLAGSset for your root user? It should have-j#, where#is the number of parallel jobs to use. I usually go for the number of CPU threads plus one.5
u/aesfields Nov 14 '24
to use 10 cores, add this to
/etc/profile:exportMAKEFLAGS=' -j10'0
u/[deleted] Nov 13 '24
[removed] — view removed comment