Berkeley-DB: Fix compilation with NVIDIA HPC Compilers on Red Hat 8. (#20616)
This commit is contained in:
parent
155a3b3a08
commit
072d21ad96
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue