From 8e0ef042903ab01882e331ffad5fdedc162a48ba Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 22 May 2003 17:36:54 +0000 Subject: [PATCH] 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. --- setup.py | 3 +++ 1 file changed, 3 insertions(+) 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']) ) -- 2.47.3