From: Nick Coghlan Date: Sun, 17 Jun 2012 08:27:11 +0000 (+1000) Subject: Issue #15044: Handle Fedora 17's approach to ndbm compatibility X-Git-Tag: v3.3.0b1~211^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50f147a9be10ee379c4c7bacb81df5e4edf24044;p=thirdparty%2FPython%2Fcpython.git Issue #15044: Handle Fedora 17's approach to ndbm compatibility --- diff --git a/setup.py b/setup.py index b2829ac64728..2539f50fa8ef 100644 --- a/setup.py +++ b/setup.py @@ -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")