source: issm/trunk/externalpackages/mpich/install-3.3-static.sh@ 24686

Last change on this file since 24686 was 24686, checked in by Mathieu Morlighem, 5 years ago

merged trunk-jpl and trunk for revision 24684

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2set -eu
3
4
5## Environment
6#
7export LD_LIBRARY_PATH="" # Ensure that libtool does not hardcode local paths set by running $ISSM_DIR/etc/environment.sh into binaries
8export LD_RUN_PATH="" # Ensure that libtool does not hardcode local paths set by running $ISSM_DIR/etc/environment.sh into binaries
9
10## Constants
11#
12VER="3.3"
13
14# Download source
15$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/mpich-${VER}.tar.gz" "mpich-${VER}.tar.gz"
16
17# Unpack source
18tar -zxvf mpich-$VER.tar.gz
19
20# Cleanup
21rm -rf install src
22mkdir install src
23
24# Move source into 'src' directory
25mv mpich-${VER}/* src
26rm -rf mpich-${VER}
27
28# Configure
29cd src
30./configure \
31 --prefix="${ISSM_DIR}/externalpackages/mpich/install" \
32 --disable-shared \
33 --disable-dependency-tracking \
34 --enable-fast=all \
35 --with-pic
36
37# Compile and install
38if [ $# -eq 0 ]; then
39 make
40 make install
41else
42 make -j $1
43 make -j $1 install
44fi
45
46# Return to initial directory
47cd ..
48
49# Strip RPATH/RUNPATH entries from executables
50#
51# NOTE:
52# - We are doing this so that we do not ship executables that have hardcoded
53# local paths in their RPATH/RUNPATH entries
54# - This might otherwise be accomplished with extensive changes to libtool's
55# handling of rpath
56#
57chrpath -d ./install/bin/hydra_pmi_proxy
58chrpath -d ./install/bin/mpiexec
Note: See TracBrowser for help on using the repository browser.