summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2003-05-22 17:36:54 +0000
committerBarry Warsaw <barry@python.org>2003-05-22 17:36:54 +0000
commit5a3d1bb547aefca348ad105c6d441e935559a301 (patch)
tree0f1dd93c0a81955216554e5a8994ca74c039607a
parent0db81ab59ae277648c757459b5c08227857ad2bc (diff)
downloadcpython-5a3d1bb547aefca348ad105c6d441e935559a301.tar.gz
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 <wink>) to have any regressions on other *nixes.
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 3210a690df..ae2ef0a06e 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']) )