|
Last change
on this file was 24686, checked in by Mathieu Morlighem, 6 years ago |
|
merged trunk-jpl and trunk for revision 24684
|
-
Property svn:executable
set to
*
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | ## Environment
|
|---|
| 6 | #
|
|---|
| 7 | export LD_LIBRARY_PATH="" # Ensure that libtool does not hardcode local paths set by running $ISSM_DIR/etc/environment.sh into binaries
|
|---|
| 8 | export 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 | #
|
|---|
| 12 | VER="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
|
|---|
| 18 | tar -zxvf mpich-$VER.tar.gz
|
|---|
| 19 |
|
|---|
| 20 | # Cleanup
|
|---|
| 21 | rm -rf install src
|
|---|
| 22 | mkdir install src
|
|---|
| 23 |
|
|---|
| 24 | # Move source into 'src' directory
|
|---|
| 25 | mv mpich-${VER}/* src
|
|---|
| 26 | rm -rf mpich-${VER}
|
|---|
| 27 |
|
|---|
| 28 | # Configure
|
|---|
| 29 | cd 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
|
|---|
| 38 | if [ $# -eq 0 ]; then
|
|---|
| 39 | make
|
|---|
| 40 | make install
|
|---|
| 41 | else
|
|---|
| 42 | make -j $1
|
|---|
| 43 | make -j $1 install
|
|---|
| 44 | fi
|
|---|
| 45 |
|
|---|
| 46 | # Return to initial directory
|
|---|
| 47 | cd ..
|
|---|
| 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 | #
|
|---|
| 57 | chrpath -d ./install/bin/hydra_pmi_proxy
|
|---|
| 58 | chrpath -d ./install/bin/mpiexec
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.