mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Issue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x)
This commit is contained in:
parent
43f42fc3cb
commit
970fcef84b
1 changed files with 5 additions and 1 deletions
6
setup.py
6
setup.py
|
@ -1158,10 +1158,14 @@ class PyBuildExt(build_ext):
|
||||||
for cand in dbm_order:
|
for cand in dbm_order:
|
||||||
if cand == "ndbm":
|
if cand == "ndbm":
|
||||||
if find_file("ndbm.h", inc_dirs, []) is not None:
|
if find_file("ndbm.h", inc_dirs, []) is not None:
|
||||||
# Some systems have -lndbm, others don't
|
# Some systems have -lndbm, others have -lgdbm_compat,
|
||||||
|
# others don't have either
|
||||||
if self.compiler.find_library_file(lib_dirs,
|
if self.compiler.find_library_file(lib_dirs,
|
||||||
'ndbm'):
|
'ndbm'):
|
||||||
ndbm_libs = ['ndbm']
|
ndbm_libs = ['ndbm']
|
||||||
|
elif self.compiler.find_library_file(lib_dirs,
|
||||||
|
'gdbm_compat'):
|
||||||
|
ndbm_libs = ['gdbm_compat']
|
||||||
else:
|
else:
|
||||||
ndbm_libs = []
|
ndbm_libs = []
|
||||||
print "building dbm using ndbm"
|
print "building dbm using ndbm"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue