diff options
| author | Xiyue Deng | 2013-08-13 13:14:24 -0700 | 
|---|---|---|
| committer | Xiyue Deng | 2013-08-14 13:08:04 -0700 | 
| commit | 5d840c0e39ec4bad8cc2d820efc3ed767155f7a8 (patch) | |
| tree | ef3291e12b86aef865ce24b17e3383910c3c026e /Library/Formula/boost.rb | |
| parent | 424c84c56523863dc6064be78560ef3ea5f2436e (diff) | |
| download | homebrew-5d840c0e39ec4bad8cc2d820efc3ed767155f7a8.tar.bz2 | |
Boost: enforce '--with-mpi' with '--without-single'
* Building MPI support for both single and multi-threaded flavors will
  result in duplicated rules for mpi.so.  Upstream bug report
  https://svn.boost.org/trac/boost/ticket/8841.
* Require '--with-mpi' be used together with '--without-single' until
  this is fixed.
Diffstat (limited to 'Library/Formula/boost.rb')
| -rw-r--r-- | Library/Formula/boost.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index f4fa0998f..13f8c6c0f 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -61,6 +61,16 @@ class Boost < Formula    end    def install +    # https://svn.boost.org/trac/boost/ticket/8841 +    if build.with? 'mpi' and !build.without? 'single' +      onoe <<-EOS.undent +        Building MPI support for both single and multi-threaded flavors +        is not supported.  Please use '--with-mpi' together with +        '--disable-single'. +      EOS +      exit -1 +    end +      # Adjust the name the libs are installed under to include the path to the      # Homebrew lib directory so executables will work when installed to a      # non-/usr/local location.  | 
