4

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?

Metalshark
  • 145
  • 5

1 Answers1

8

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

Florian Diesch
  • 86,013
  • 17
  • 224
  • 214
  • 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 06:13
  • apt-build is no longer maintained. is there another way? – Paul Tsai Aug 07 '19 at 02:16