summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserbanmaerean <serban@us.ibm.com>2018-01-04 10:10:37 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-04 09:10:37 -0600
commit8f6935d53f7f272286e154d52fe972e2249958e9 (patch)
tree7fd1a58c14869d5655b8b8aa1723226dba9f5b11
parent521e9da05345922f01945157ec30921ac87ec11e (diff)
downloadspack-8f6935d53f7f272286e154d52fe972e2249958e9.tar.gz
spack-8f6935d53f7f272286e154d52fe972e2249958e9.tar.bz2
spack-8f6935d53f7f272286e154d52fe972e2249958e9.tar.xz
spack-8f6935d53f7f272286e154d52fe972e2249958e9.zip
Set SMPI library path in dependent packages (#6548)
* Added magma package * Incorporated Serban's change * Remove deleted files * argparse.py * Sync forked Spack repo in github * Add spectrum-mpi lib path to LD_LIBRAY_PATH in spack_env. As a result of supporting alternate installation directories, spectrum-mpi does not use rpath anymore, so we need to set LD_LIBRARY_PATH in spack_env to allow MPI programs to run during dependent package configuration. * Fix flake8 error (blank line at EOF)
-rw-r--r--var/spack/repos/builtin/packages/spectrum-mpi/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/spectrum-mpi/package.py b/var/spack/repos/builtin/packages/spectrum-mpi/package.py
index c2b08c0086..fff7c3f2ad 100644
--- a/var/spack/repos/builtin/packages/spectrum-mpi/package.py
+++ b/var/spack/repos/builtin/packages/spectrum-mpi/package.py
@@ -68,3 +68,5 @@ class SpectrumMpi(Package):
spack_env.set('OMPI_CXX', spack_cxx)
spack_env.set('OMPI_FC', spack_fc)
spack_env.set('OMPI_F77', spack_f77)
+
+ spack_env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib)