summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-02-24 22:39:38 +0100
committerGitHub <noreply@github.com>2022-02-24 22:39:38 +0100
commit8c1e54180e18f6d61509995e333dfeac7c52743c (patch)
tree64f69022598acf2b0c30fa8991ffe791d928868a
parentdc01f9597ec31579c5f571278bbd4335a9267072 (diff)
downloadspack-8c1e54180e18f6d61509995e333dfeac7c52743c.tar.gz
spack-8c1e54180e18f6d61509995e333dfeac7c52743c.tar.bz2
spack-8c1e54180e18f6d61509995e333dfeac7c52743c.tar.xz
spack-8c1e54180e18f6d61509995e333dfeac7c52743c.zip
disable gpfs through --with-gpfs=no (#29181)
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index 1db70d7b93..3be975dca7 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -620,11 +620,6 @@ class Openmpi(AutotoolsPackage):
perl = which('perl')
perl('autogen.pl')
- def setup_build_environment(self, env):
- if '~gpfs' in self.spec:
- env.set('ac_cv_header_gpfs_h', 'no')
- env.set('ac_cv_header_gpfs_fcntl_h', 'no')
-
def configure_args(self):
spec = self.spec
config_args = [
@@ -734,6 +729,11 @@ class Openmpi(AutotoolsPackage):
if '~romio' in spec:
config_args.append('--disable-io-romio')
+ if '+gpfs' in spec:
+ config_args.append('--with-gpfs')
+ else:
+ config_args.append('--with-gpfs=no')
+
# SQLite3 support
if spec.satisfies('@1.7.3:1'):
if '+sqlite3' in spec: