diff options
author | Erik Schnetter <schnetter@gmail.com> | 2017-01-18 17:54:39 -0500 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-18 14:54:39 -0800 |
commit | 9b7001fda1d9738a65da3e02e5a5014391bd7850 (patch) | |
tree | be0f84889ee1329e86e816e65f7178bc310be82c /var | |
parent | 02f92fc7f8a69618fcf91282222b8316ace9c4ae (diff) | |
download | spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.gz spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.bz2 spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.tar.xz spack-9b7001fda1d9738a65da3e02e5a5014391bd7850.zip |
OpenMPI: Update auto-detection of Verbs library location (#2124)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/openmpi/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py index 754cc8d93e..2c6b6d68ac 100644 --- a/var/spack/repos/builtin/packages/openmpi/package.py +++ b/var/spack/repos/builtin/packages/openmpi/package.py @@ -39,6 +39,9 @@ def _verbs_dir(): # Remove executable name and "bin" directory path = os.path.dirname(path) path = os.path.dirname(path) + # There's usually no "/include" on Unix; use "/usr/include" instead + if path == "/": + path = "/usr" return path except: return None |