From 4d0926464cdfa9b9658ac4eabc6c8ed56b8720ca Mon Sep 17 00:00:00 2001 From: Sameer Shende Date: Mon, 1 Jul 2019 11:47:14 -0700 Subject: mpich: wrapperrpath variant allows disablement of RPATH usage in mpicc Added a wrapperrpath variant to mpich that defaults to `True`. Users can set this to `False` (e.g., spack install mpich~wrapperrpath) to disable the wrapper RPATHs. This makes it easier to replacing an MPICH installation in a container with an MPICH for the host system, e.g., Cray MPICH with Shifter on Cori, Intel MPI, MVAPICH2, etc. Co-authored-by: Todd Gamblin --- var/spack/repos/builtin/packages/mpich/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index 93a65ab6ac..918ebfd64e 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -33,6 +33,7 @@ class Mpich(AutotoolsPackage): variant('romio', default=True, description='Enable ROMIO MPI I/O implementation') variant('verbs', default=False, description='Build support for OpenFabrics verbs.') variant('slurm', default=False, description='Enable SLURM support') + variant('wrapperrpath', default=True, description='Enable wrapper rpath') variant( 'pmi', default='pmi', @@ -172,7 +173,9 @@ spack package at this time.''', '--enable-shared', '--with-pm={0}'.format('hydra' if '+hydra' in spec else 'no'), '--{0}-romio'.format('enable' if '+romio' in spec else 'disable'), - '--{0}-ibverbs'.format('with' if '+verbs' in spec else 'without') + '--{0}-ibverbs'.format('with' if '+verbs' in spec else 'without'), + '--enable-wrapper-rpath={0}'.format('no' if '~wrapperrpath' in + spec else 'yes') ] if 'pmi=off' in spec: -- cgit v1.2.3-70-g09d2