mxcl/homebrew — pull request #10774 by Sharpie (2012-03-08 03:02:37+00:00)
Title: Generalize methods in ENV.rb for altering environment variables

The methods `ENV.prepend`, `ENV.append` and `ENV.remove` have been generalized so that they may accept either a list of flags to operate on or a single flag.

Two new convenience variables are defined, `ENV.cflags_flags` and `ENV.fcflags_flags`. `cflags_flags` is defined to be the list of all flags currently affected by `ENV.append_to_cflags`.

`ENV.set_cpu_cflags` has been generalized into `ENV.set_cpu_flags` which takes a list of flags to operate on as it's first argument.

__tldr__: All this generalization makes it easy to adjust the CPU flags passed to Fortran compilers, thereby fixing issue #10424 and restoring the functionality of Fortran-based brews to Xcode 4.3 users.