LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2014, 09:22 AM   #31
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,224

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320

Quote:
Originally Posted by Qury View Post
Do you guys know if there are any plans to add support for multiple build jobs?
Or are there any environment variables, etc.. that can can be used to take advantage of the multiple cores?
You just add "-j n" or "-jn" to the "make" command in the SlackBuild. For now, that requires editing the SlackBuild manually.
 
Old 01-14-2014, 09:44 AM   #32
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Code:
export MAKEFLAGS=-j8
 
Old 01-14-2014, 09:48 AM   #33
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by willysr View Post
Code:
export MAKEFLAGS=-j8
I put that into /etc/sbopkg/sbopkg.conf
 
Old 01-14-2014, 10:34 AM   #34
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 212

Rep: Reputation: 55
I use this in my /etc/sbopkg/sbopkg.conf:

Code:
CORES=`nproc`
JOBS=`echo "$CORES + 1" | bc`
export MAKEFLAGS="-j${JOBS}"
You may need to override this with certain Slackbuilds:

Code:
$ cat /var/lib/sbopkg/queues/avr-libc.sqf
@avr-gcc
avr-libc | MAKEFLAGS='-j1'

Last edited by granth; 01-14-2014 at 10:37 AM. Reason: typo
 
1 members found this post helpful.
Old 01-14-2014, 12:06 PM   #35
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272
Blog Entries: 2

Rep: Reputation: 85
Quote:
Originally Posted by granth View Post
I use this in my /etc/sbopkg/sbopkg.conf:

Code:
CORES=`nproc`
JOBS=`echo "$CORES + 1" | bc`
export MAKEFLAGS="-j${JOBS}"
Can also use,
JOBS=`expr $CORES + 1`

Code:
man expr

expr - evaluate expressions

Last edited by aaditya; 01-14-2014 at 12:10 PM.
 
1 members found this post helpful.
Old 01-15-2014, 08:26 AM   #36
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 212

Rep: Reputation: 184Reputation: 184
Hi Guys, thanks for the help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sbopkg and SlackBuilds 14.1 repo radwis Slackware 4 11-27-2013 04:54 AM
Is slackbuilds.org going to add a 14.1 repo? narz Slackware 8 11-10-2013 01:30 PM
openbox on slack13.37 (x86) -- Thanks to linuxquestions.org, slackbuilds.org & many vectrum Linux - Member Desktop Screenshots 5 02-03-2013 12:22 PM
LXer: News: Kernel.org Hacked but Development Continues on Github LXer Syndicated Linux News 0 09-08-2011 08:20 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration