Berkeley-DB: Fix compilation with NVIDIA HPC Compilers on Red Hat 8. (#20616)

This commit is contained in:
Rémi Lacroix 2021-01-05 19:45:22 +01:00 committed by GitHub
parent 155a3b3a08
commit 072d21ad96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ def patch(self):
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 @@ def configure_args(self):
'--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