← Back to team overview

dorsal team mailing list archive

Re: fortran support in openmpi package

 

On Thu, Aug 16, 2012 at 8:26 AM, Johan Hake <hake.dev@xxxxxxxxx> wrote:
> Could we either include an openmpi-with-fotran package or just remove
> the --disable-mpi-f90 option from openmpi.packae file?

I think --disable-mpi-f90 is needed on OS X since it doesn't come with
a Fortran compiler. Maybe we can add that flag only on Mac? Like this:

=== modified file 'FEniCS/packages/openmpi.package'
--- FEniCS/packages/openmpi.package	2011-12-09 12:51:19 +0000
+++ FEniCS/packages/openmpi.package	2012-08-16 06:44:11 +0000
@@ -2,4 +2,8 @@
 SOURCE=http://www.open-mpi.org/software/ompi/v1.4/downloads/
 PACKING=.tar.bz2
 BUILDCHAIN=autotools
-CONFOPTS='--disable-mpi-f90 --disable-mpi-profile'
+CONFOPTS='--disable-mpi-profile'
+
+if [ "$(uname -s)" == "Darwin" ]; then
+    CONFOPTS='--disable-mpi-f90 ${CONFOPTS}'
+fi


Johannes


References