mxcl/homebrew — pull request #16299 by goodell (2012-11-29 00:18:05+00:00)
Title: mpich2: re-enable shared libs

MPICH2 fails to build with clang because of a clang (and/or ld) bug with
Xcode 4.5.1. Issue originally reported to homebrew in #15533, "fixed"
by disabling shared libraries altogether in bcb64c7.

- Add a `--disable-shared` option, revert default to building shared libs
- Add a `fails_with :clang` when building shared libs
- Upstream is aware of the issue, but has no workaround besides using
`llvm-gcc`
- MacPorts is basically using an equivalent workaround at this time.
- Tested on 10.7.5 with Xcode 4.5.2 with and without `--disable-shared`