Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using Ubuntu on a bespoke router and after seeing the latency drops capable with custom compiling on Gentoo, I would like to recompile all packages with CFLAGS="-march=atom". The guide for this and a helpful forum thread demonstrate the recompilation steps:

export CFLAGS="-march=nocona"
export CXXFLAGS="-march=nocona"
apt-get build-dep packagename
apt-get -b source packagename
dpkg -i *.deb

Is it possible to automate a complete system recompilation instead of specifying one package at a time and to automatically recompile new package updates before they are installed?

share|improve this question
add comment

1 Answer 1

up vote 8 down vote accepted

Have a look at apt-build (not installed by default)

share|improve this answer
    
apt-build has "issues" with Natty, but at least it is an established project to contribute to. If you are after a polished, well packaged solution that you can leave unattended, this most likely is not the tool for you. –  Metalshark Jun 10 '11 at 6:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.