Results 1 to 3 of 3

Thread: compile flags for paralel building

  1. #1
    Join Date
    Feb 2009
    Beans
    154
    Distro
    Ubuntu Development Release

    compile flags for paralel building

    if you have not noticed, this is my ubuntu master thesis....
    http://ubuntuforums.org/showthread.php?t=1836890
    check it out and share it with your friends =)

    this is how to set your ubuntu for compiling to use multi processor. some older packages require you to use only 1 processor. so comment the export make flag, then "echo $MAKEFLAGS" to see how many processors your using you might need to "source .bashrc" to update the rc file

    Code:
    cat >> ~/.bashrc << "EOF"
    # parallel compile settings
    # set these to the number of processors you have + 1
    export MAKEFLAGS='-j 5'
    # end of parallel compile settings
    EOF
    previous code is 4 quad core, for my dual core

    Code:
    cat >> ~/.bashrc << "EOF"
    # parallel compile settings
    # set these to the number of processors you have + 1
    export MAKEFLAGS='-j 3'
    # end of parallel compile settings
    EOF
    to disable it momentarily for packages and do not compile correctly copy and paste this

    Code:
    export MAKEFLAGS=''
    and then continue on. the specific terminal with the disable ran will disable until closed or re sourced .bashrc
    Last edited by boblizar; March 10th, 2012 at 02:06 PM.

  2. #2
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    11,988
    Distro
    Lubuntu 16.10 Yakkety Yak

    Re: compile flags for paralel building

    Thanks. If you mark the thread 'solved', there is a better chance that people will find it.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

  3. #3
    Join Date
    Feb 2009
    Beans
    154
    Distro
    Ubuntu Development Release

    Re: compile flags for paralel building

    thanks for the heads up on marking it solved. this script is set to add the info at the end of your .bashrc, so if you need to edit the command out, just put a # in front of the export MAKEFLAGS='-j 5' to de-activate it.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •