diff options
author | Barry Warsaw <barry@python.org> | 2003-05-22 17:36:54 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2003-05-22 17:36:54 +0000 |
commit | 5a3d1bb547aefca348ad105c6d441e935559a301 (patch) | |
tree | 0f1dd93c0a81955216554e5a8994ca74c039607a | |
parent | 0db81ab59ae277648c757459b5c08227857ad2bc (diff) | |
download | cpython-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.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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']) ) |