From 5d840c0e39ec4bad8cc2d820efc3ed767155f7a8 Mon Sep 17 00:00:00 2001 From: Xiyue Deng Date: Tue, 13 Aug 2013 13:14:24 -0700 Subject: 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. --- Library/Formula/boost.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Library/Formula') 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. -- cgit v1.2.3