diff options
author | Sergey Kosukhin <sergey.kosukhin@mpimet.mpg.de> | 2020-08-23 05:01:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 22:01:41 -0500 |
commit | b5e78bce069141d827f00d19f129b1860fa1953e (patch) | |
tree | 1cd4c06df614594521a7ee5189e0116726ba382f /var | |
parent | 9fdb945383471eaaceb98652837ba1a314477d36 (diff) | |
download | spack-b5e78bce069141d827f00d19f129b1860fa1953e.tar.gz spack-b5e78bce069141d827f00d19f129b1860fa1953e.tar.bz2 spack-b5e78bce069141d827f00d19f129b1860fa1953e.tar.xz spack-b5e78bce069141d827f00d19f129b1860fa1953e.zip |
OpenMPI: sanitize dependent build environment. (#15360)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 2cd70dbc07..7c79e8732d 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -367,6 +367,14 @@ class Openmpi(AutotoolsPackage): env.set('OMPI_FC', spack_fc) env.set('OMPI_F77', spack_f77) + # See https://www.open-mpi.org/faq/?category=building#installdirs + for suffix in ['PREFIX', 'EXEC_PREFIX', 'BINDIR', 'SBINDIR', + 'LIBEXECDIR', 'DATAROOTDIR', 'DATADIR', 'SYSCONFDIR', + 'SHAREDSTATEDIR', 'LOCALSTATEDIR', 'LIBDIR', + 'INCLUDEDIR', 'INFODIR', 'MANDIR', 'PKGDATADIR', + 'PKGLIBDIR', 'PKGINCLUDEDIR']: + env.unset('OPAL_%s' % suffix) + def setup_dependent_package(self, module, dependent_spec): self.spec.mpicc = join_path(self.prefix.bin, 'mpicc') self.spec.mpicxx = join_path(self.prefix.bin, 'mpic++') |