diff options
author | RĂ©mi Lacroix <remi.lacroix@idris.fr> | 2021-01-05 19:45:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 10:45:22 -0800 |
commit | 072d21ad96acbc0ddfa4c6913493ca8492746dab (patch) | |
tree | 962ef93df2cac625404a896777041584b43ec6de /var | |
parent | 155a3b3a08e905046a345c10a29973e1d82e60ce (diff) | |
download | spack-072d21ad96acbc0ddfa4c6913493ca8492746dab.tar.gz spack-072d21ad96acbc0ddfa4c6913493ca8492746dab.tar.bz2 spack-072d21ad96acbc0ddfa4c6913493ca8492746dab.tar.xz spack-072d21ad96acbc0ddfa4c6913493ca8492746dab.zip |
Berkeley-DB: Fix compilation with NVIDIA HPC Compilers on Red Hat 8. (#20616)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/berkeley-db/package.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/berkeley-db/package.py b/var/spack/repos/builtin/packages/berkeley-db/package.py index 580f0132fe..04f74a0585 100644 --- a/var/spack/repos/builtin/packages/berkeley-db/package.py +++ b/var/spack/repos/builtin/packages/berkeley-db/package.py @@ -27,6 +27,8 @@ class BerkeleyDb(AutotoolsPackage): filter_file(r'gsg_db_server', '', 'dist/Makefile.in') def configure_args(self): + spec = self.spec + config_args = [ '--disable-static', '--enable-cxx', @@ -39,9 +41,10 @@ class BerkeleyDb(AutotoolsPackage): '--with-repmgr-ssl=no', ] - # The default glibc provided by CentOS 7 does not provide proper - # atomic support when using the NVIDIA compilers - if self.spec.satisfies('%nvhpc os=centos7'): + # The default glibc provided by CentOS 7 and Red Hat 8 does not provide + # proper atomic support when using the NVIDIA compilers + if (spec.satisfies('%nvhpc') + and (spec.satisfies('os=centos7') or spec.satisfies('os=rhel8'))): config_args.append('--disable-atomicsupport') return config_args |