From: Barry Warsaw Date: Thu, 22 May 2003 17:36:54 +0000 (+0000) Subject: Link the dbm module against gdbm if it exists and if no earlier X-Git-Tag: v2.2.3c1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e0ef042903ab01882e331ffad5fdedc162a48ba;p=thirdparty%2FPython%2Fcpython.git Link the dbm module against gdbm if it exists and if no earlier library match was found. This fixes dbm on RedHat 9 and doesn't appear (so far ) to have any regressions on other *nixes. --- diff --git a/setup.py b/setup.py index 3210a690dfde..ae2ef0a06eb0 100644 --- a/setup.py +++ b/setup.py @@ -406,6 +406,9 @@ class PyBuildExt(build_ext): elif self.compiler.find_library_file(lib_dirs, 'db1'): exts.append( Extension('dbm', ['dbmmodule.c'], libraries = ['db1'] ) ) + elif self.compiler.find_library_file(lib_dirs, 'gdbm'): + exts.append( Extension('dbm', ['dbmmodule.c'], + libraries = ['gdbm'] ) ) else: exts.append( Extension('dbm', ['dbmmodule.c']) )