Daniel Schepler writes: > Package: gcc-3.2 > Version: 1:3.2.2-0pre3 > Severity: wishlist > > I've been rebuilding all my packages with Athlon optimization, using a > combination of pbuilder and pentium-builder. Unfortunately, because > of the way this works, gcc-3.2 isn't compiled with Athlon > optimization. It would be nice to have a way to get this to happen. > > Probably the easiest way (for me) would be to recognize the > DEBIAN_BUILDARCH environment variable, which is also what > pentium-builder uses. If the variable were set, stage 2 and above, > along with the libraries, would be built using > "-O... -march=$DEBIAN_BUILDARCH -mcpu=$DEBIAN_BUILDARCH".
it would be easier to add an DEBIAN_EXTRA_BUILDFLAGS, as not every architecture does have -mcpu/-march. s390 uses -mtune. I didn't check all architectures ...