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
|
---|
4 | rm -rf src install mpich2-1.4
|
---|
5 | mkdir src install
|
---|
6 |
|
---|
7 | #Untar
|
---|
8 | tar -zxvf mpich2-1.4.tar.gz
|
---|
9 |
|
---|
10 | #Move mpich2 into src directory
|
---|
11 | mv mpich2-1.4/* src
|
---|
12 | rm -rf mpich2-1.4
|
---|
13 |
|
---|
14 | #Configure mpich2
|
---|
15 | cd src
|
---|
16 | export FCFLAGS=" -m64"
|
---|
17 | export FFLAGS=" -m64"
|
---|
18 | export CFLAGS=" -arch x86_64"
|
---|
19 | export 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
|
---|
28 | if [ -z $1 ]; then
|
---|
29 | make
|
---|
30 | else
|
---|
31 | make -j $1
|
---|
32 | fi
|
---|
33 | make install
|
---|
34 |
|
---|
35 | #remove so files
|
---|
36 | cd ../install/lib
|
---|
37 | rm -rf *.so
|
---|
Note:
See
TracBrowser
for help on using the repository browser.