Mercurial > cpython-lru_cache-weakref
diff setup.py @ 77481:e2be1f43beed 3.2
Issue #15044: Handle Fedora 17's approach to ndbm compatibility
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sun, 17 Jun 2012 18:27:11 +1000 |
| parents | 807f331f973d |
| children | eb0af7f6ea6d 1f6c23ed8218 |
line wrap: on
line diff
--- a/setup.py Fri Jun 15 20:50:51 2012 +0300 +++ b/setup.py Sun Jun 17 18:27:11 2012 +1000 @@ -1077,10 +1077,14 @@ for cand in dbm_order: if cand == "ndbm": 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, 'ndbm'): ndbm_libs = ['ndbm'] + elif self.compiler.find_library_file(lib_dirs, + 'gdbm_compat'): + ndbm_libs = ['gdbm_compat'] else: ndbm_libs = [] print("building dbm using ndbm")
