diff options
author | Kyle Gerheiser <3209794+kgerheiser@users.noreply.github.com> | 2021-11-09 10:48:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-09 15:48:01 +0000 |
commit | 86c8c3306bbf02c8b0556c00986c4fdda44b3711 (patch) | |
tree | 3a4c92442caf4419cf99ad08b215d08bbcf26369 | |
parent | 6e9c0a8155475bc0ad13d19c1902f23e83f3e484 (diff) | |
download | spack-86c8c3306bbf02c8b0556c00986c4fdda44b3711.tar.gz spack-86c8c3306bbf02c8b0556c00986c4fdda44b3711.tar.bz2 spack-86c8c3306bbf02c8b0556c00986c4fdda44b3711.tar.xz spack-86c8c3306bbf02c8b0556c00986c4fdda44b3711.zip |
Add variant for the --enable-two-level-namespace option in MPICH (#27230)
-rw-r--r-- | var/spack/repos/builtin/packages/mpich/package.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py index cae3ea70af..16d2035959 100644 --- a/var/spack/repos/builtin/packages/mpich/package.py +++ b/var/spack/repos/builtin/packages/mpich/package.py @@ -81,6 +81,15 @@ spack package at this time.''', description='Enable Argobots support') variant('fortran', default=True, description='Enable Fortran support') + variant( + 'two_level_namespace', + default=False, + description='''Build shared libraries and programs +built with the mpicc/mpifort/etc. compiler wrappers +with '-Wl,-commons,use_dylibs' and without +'-Wl,-flat_namespace'.''' + ) + provides('mpi@:3.1') provides('mpi@:3.0', when='@:3.1') provides('mpi@:2.2', when='@:1.2') @@ -475,6 +484,9 @@ spack package at this time.''', config_args.append('--with-thread-package=argobots') config_args.append('--with-argobots=' + spec['argobots'].prefix) + if '+two_level_namespace' in spec: + config_args.append('--enable-two-level-namespace') + return config_args @run_after('install') |