Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b3eb0d

Browse files
committed
Merge from 3.2. (Issue #15044: Handle Fedora 17's approach to ndbm compatibility)
2 parents 71fde31 + 50f147a commit 2b3eb0d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,10 +1085,14 @@ class db_found(Exception): pass
10851085
for cand in dbm_order:
10861086
if cand == "ndbm":
10871087
if find_file("ndbm.h", inc_dirs, []) is not None:
1088-
# Some systems have -lndbm, others don't
1088+
# Some systems have -lndbm, others have -lgdbm_compat,
1089+
# others don't have either
10891090
if self.compiler.find_library_file(lib_dirs,
10901091
'ndbm'):
10911092
ndbm_libs = ['ndbm']
1093+
elif self.compiler.find_library_file(lib_dirs,
1094+
'gdbm_compat'):
1095+
ndbm_libs = ['gdbm_compat']
10921096
else:
10931097
ndbm_libs = []
10941098
if dbm_setup_debug: print("building dbm using ndbm")

0 commit comments

Comments
 (0)