diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-06-17 08:27:11 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-06-17 08:27:11 (GMT) |
commit | 50f147a9be10ee379c4c7bacb81df5e4edf24044 (patch) | |
tree | 6a05d27dc1b9b6d8218631b15c0e9421cef64b25 | |
parent | 02653f1b111c8b9f64de8960d9a55d4f5821e257 (diff) | |
download | cpython-50f147a9be10ee379c4c7bacb81df5e4edf24044.zip cpython-50f147a9be10ee379c4c7bacb81df5e4edf24044.tar.gz cpython-50f147a9be10ee379c4c7bacb81df5e4edf24044.tar.bz2 |
Issue #15044: Handle Fedora 17's approach to ndbm compatibility
-rw-r--r-- | setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1077,10 +1077,14 @@ class PyBuildExt(build_ext): 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") |