Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71fde31 + 50f147a commit 2b3eb0dCopy full SHA for 2b3eb0d
1 file changed
setup.py
@@ -1085,10 +1085,14 @@ class db_found(Exception): pass
1085
for cand in dbm_order:
1086
if cand == "ndbm":
1087
if find_file("ndbm.h", inc_dirs, []) is not None:
1088
- # Some systems have -lndbm, others don't
+ # Some systems have -lndbm, others have -lgdbm_compat,
1089
+ # others don't have either
1090
if self.compiler.find_library_file(lib_dirs,
1091
'ndbm'):
1092
ndbm_libs = ['ndbm']
1093
+ elif self.compiler.find_library_file(lib_dirs,
1094
+ 'gdbm_compat'):
1095
+ ndbm_libs = ['gdbm_compat']
1096
else:
1097
ndbm_libs = []
1098
if dbm_setup_debug: print("building dbm using ndbm")
0 commit comments