From 7799644cbbb6e4cb4c1774dd40ebf3267c98e433 Mon Sep 17 00:00:00 2001 From: Xavier Lacoste Date: Tue, 8 Jan 2013 16:46:02 +0100 Subject: [PATCH] open-mpi: add MPI_THREAD_MULTIPLE support. Closes Homebrew/homebrew#16956. Signed-off-by: Mike McQuaid --- Formula/open-mpi.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/open-mpi.rb b/Formula/open-mpi.rb index 48f51df370..278eaeaa07 100644 --- a/Formula/open-mpi.rb +++ b/Formula/open-mpi.rb @@ -15,6 +15,7 @@ class OpenMpi < Formula option 'disable-fortran', 'Do not build the Fortran bindings' option 'test', 'Verify the build with make check' + option 'enable-mpi-thread-multiple', 'Enable MPI_THREAD_MULTIPLE' def install args = %W[ @@ -28,6 +29,10 @@ class OpenMpi < Formula ENV.fortran end + if build.include? 'enable-mpi-thread-multiple' + args << '--enable-mpi-thread-multiple' + end + system './configure', *args system 'make V=1 all' system 'make V=1 check' if build.include? 'test'