LinuxQuestions.org
Visit Jeremy's Blog.
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, 10:22 AM   #31
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352

Rep: Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382Reputation: 5382

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, 10:44 AM   #32
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,816

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

Rep: Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356Reputation: 4356
Quote:
Originally Posted by willysr View Post
Code:
export MAKEFLAGS=-j8
I put that into /etc/sbopkg/sbopkg.conf
 
Old 01-14-2014, 11: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 11:37 AM. Reason: typo
 
1 members found this post helpful.
Old 01-14-2014, 01: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 01:10 PM.
 
1 members found this post helpful.
Old 01-15-2014, 09:26 AM   #36
Qury
Member
 
Registered: Feb 2004
Location: Naas,IE
Distribution: Slackware
Posts: 216

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:54 AM
Is slackbuilds.org going to add a 14.1 repo? narz Slackware 8 11-10-2013 02:30 PM
openbox on slack13.37 (x86) -- Thanks to linuxquestions.org, slackbuilds.org & many vectrum Linux - Member Desktop Screenshots 5 02-03-2013 01:22 PM
LXer: News: Kernel.org Hacked but Development Continues on Github LXer Syndicated Linux News 0 09-08-2011 09:20 AM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 09:56 PM

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

All times are GMT -5. The time now is 08:02 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