diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpich2.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/mpich2.rb b/Library/Formula/mpich2.rb index 130f2166a..00a69d72e 100644 --- a/Library/Formula/mpich2.rb +++ b/Library/Formula/mpich2.rb @@ -15,6 +15,18 @@ class Mpich2 < Formula end option 'disable-fortran', "Do not attempt to build Fortran bindings" + option 'enable-shared', "Build shared libraries" + + # fails with clang from Xcode 4.5.1 on 10.7 and 10.8 (see #15533) + fails_with :clang do + build 421 + cause <<-EOS.undent + Clang generates code that causes the linker to segfault when building + MPICH2 with shared libraries. Specific message: + + collect2: ld terminated with signal 11 [Segmentation fault: 11] + EOS + end if build.include? 'enable-shared' def install if build.head? @@ -36,6 +48,11 @@ class Mpich2 < Formula ENV.fortran end + # MPICH2 configure defaults to "--disable-shared" + if build.include? 'enable-shared' + args << "--enable-shared" + end + system "./configure", *args system "make" system "make install" |
