Commit 2d5e80f0 authored by Andrew MacIntyre's avatar Andrew MacIntyre

add support for another DB library naming convention (FreeBSD ports)

parent b0252bdc
...@@ -598,7 +598,9 @@ class PyBuildExt(build_ext): ...@@ -598,7 +598,9 @@ class PyBuildExt(build_ext):
# XXX should we -ever- look for a dbX name? Do any # XXX should we -ever- look for a dbX name? Do any
# systems really not name their library by version and # systems really not name their library by version and
# symlink to more general names? # symlink to more general names?
for dblib in (('db-%d.%d' % db_ver), ('db%d' % db_ver[0])): for dblib in (('db-%d.%d' % db_ver),
('db%d%d' % db_ver),
('db%d' % db_ver[0])):
dblib_file = self.compiler.find_library_file( dblib_file = self.compiler.find_library_file(
db_dirs_to_check + lib_dirs, dblib ) db_dirs_to_check + lib_dirs, dblib )
if dblib_file: if dblib_file:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment