mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
gh-89452: Prefer gdbm-compat over ndbm (#92208)
This makes macOS gdbm provided by Homebrew not segfault through correct selection of the linked library (-lgdbm_compat) *AND* the correct ndbm-style header (gdbm-ndbm.h instead of the invalid ndbm.h).
This commit is contained in:
parent
feca9bbd1f
commit
6c25bf07e8
5 changed files with 11 additions and 9 deletions
2
setup.py
2
setup.py
|
@ -1207,7 +1207,7 @@ class PyBuildExt(build_ext):
|
|||
if dbm_args:
|
||||
dbm_order = [arg.split('=')[-1] for arg in dbm_args][-1].split(":")
|
||||
else:
|
||||
dbm_order = "ndbm:gdbm:bdb".split(":")
|
||||
dbm_order = "gdbm:ndbm:bdb".split(":")
|
||||
dbmext = None
|
||||
for cand in dbm_order:
|
||||
if cand == "ndbm":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue