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')
|
filter_file(r'gsg_db_server', '', 'dist/Makefile.in')
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
|
|
||||||
config_args = [
|
config_args = [
|
||||||
'--disable-static',
|
'--disable-static',
|
||||||
'--enable-cxx',
|
'--enable-cxx',
|
||||||
|
@ -39,9 +41,10 @@ def configure_args(self):
|
||||||
'--with-repmgr-ssl=no',
|
'--with-repmgr-ssl=no',
|
||||||
]
|
]
|
||||||
|
|
||||||
# The default glibc provided by CentOS 7 does not provide proper
|
# The default glibc provided by CentOS 7 and Red Hat 8 does not provide
|
||||||
# atomic support when using the NVIDIA compilers
|
# proper atomic support when using the NVIDIA compilers
|
||||||
if self.spec.satisfies('%nvhpc os=centos7'):
|
if (spec.satisfies('%nvhpc')
|
||||||
|
and (spec.satisfies('os=centos7') or spec.satisfies('os=rhel8'))):
|
||||||
config_args.append('--disable-atomicsupport')
|
config_args.append('--disable-atomicsupport')
|
||||||
|
|
||||||
return config_args
|
return config_args
|
||||||
|
|
Loading…
Reference in a new issue