Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Recompile all packages and trigger on updates

What's easiest way of to rebuild a package in Debian/Ubuntu using a specific set of CFLAGS/CXXFLAGS. In all the tutorials I have read so far, for example this one, they all refer to Debian's way which is about 5-10 command line calls depending what want to do.

But If I simply want to rebuild a package with -march=native it should be as simple as Gentoo's CFLAGS=-march=native emerge PACKAGE. Scripts for that any one?

Why isn't Ubuntu as user friendly as Gentoo in this aspect?

share|improve this question

marked as duplicate by Jorge Castro, Marco Ceppi Sep 30 '11 at 21:14

This question was marked as an exact duplicate of an existing question.

Oops, I just discovered this other question! Seems to be exactly the thing I am looking for.

share|improve this answer

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