source: issm/trunk/externalpackages/mpich2/install-1.4-macosx64.sh@ 11237

Last change on this file since 11237 was 11237, checked in by Eric.Larour, 13 years ago

merged trunk-jpl and trunk for revision 11236

  • Property svn:executable set to *
File size: 591 bytes
Line 
1#!/bin/bash
2
3#Some cleanup
4rm -rf src install mpich2-1.4
5mkdir src install
6
7#Untar
8tar -zxvf mpich2-1.4.tar.gz
9
10#Move mpich2 into src directory
11mv mpich2-1.4/* src
12rm -rf mpich2-1.4
13
14#Configure mpich2
15cd src
16export FCFLAGS=" -m64"
17export FFLAGS=" -m64"
18export CFLAGS=" -arch x86_64"
19export CXXFLAGS=" -arch x86_64"
20./configure \
21 --prefix="$ISSM_TIER/externalpackages/mpich2/install" \
22 --enable-f91 \
23 --enable-sharedlibs=osx-gcc \
24 --enable-shared \
25 --enable-fc
26
27#Compile mpich2
28if [ -z $1 ]; then
29 make
30else
31 make -j $1
32fi
33make install
34
35#remove so files
36cd ../install/lib
37rm -rf *.so
Note: See TracBrowser for help on using the repository browser.