Index: /issm/trunk/externalpackages/mpich2/configs/1.3.1/linux64/configure.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/configs/1.3.1/linux64/configure.sh	(revision 8146)
+++ /issm/trunk/externalpackages/mpich2/configs/1.3.1/linux64/configure.sh	(revision 8146)
@@ -0,0 +1,4 @@
+#!/bin/bash
+export CFLAGS="$CFLAGS -fPIC"
+export FFLAGS="$FFLAGS -fPIC"
+./configure --prefix="$ISSM_TIER/externalpackages/mpich2/install" --enable-shared --enable-sharedlibs=gcc --enable-f91=gfortran 
Index: /issm/trunk/externalpackages/mpich2/install.sh
===================================================================
--- /issm/trunk/externalpackages/mpich2/install.sh	(revision 8145)
+++ /issm/trunk/externalpackages/mpich2/install.sh	(revision 8146)
@@ -23,8 +23,13 @@
 #Configure mpich2
 cd src
-make distclean
+if [[ "$version" == "1.0.2p1" ]];
+then
+	make distclean
+fi
+
 source ../configure.sh
 
-if [[ "$version" == "1.0.2p1" ]] then
+if [[ "$version" == "1.0.2p1" ]];
+then
 	#Apply Patch to examples
 	patch ./examples/Makefile ../Examples.Makefile.patch
