mxcl/homebrew — pull request #9350 by mikemcquaid (2011-12-31 20:27:59+00:00)
Title: Bottle CFLAGS

This is the first step to fix the issue where you can get invalid instructions if using bottles on different hardware to the one they were created on. I've reproduced this on the first-gen Mac Pro at work's Qt build.

I think we should go forward and make `brew bottle` always ensure that `--build-bottle` was used by installing it with the correct flags (reverting @mxcl's change to make it not install). Alternatively we could modify the tab code to store whether an item was installed using the `--build-bottle` flag.

Anything else you think we should do for bottles? Perhaps use GCC so we can make use of the tuning flags and generally because it still produces faster code at the moment.

Thoughts @mxcl @adamv @Sharpie @jacknagel @mistydemeo? Once this is merged I think we/I should rebuild all the current bottles with the new bottle flags.