Fix to call 'library_filename()' instead of the non-existent

'shared_library_filename()'.
This commit is contained in:
Greg Ward 2000-07-27 01:23:19 +00:00
parent 53c1bc3f9b
commit 7499847c53

View file

@ -205,7 +205,7 @@ class UnixCCompiler (CCompiler):
self.link_shared_object ( self.link_shared_object (
objects, objects,
self.shared_library_filename (output_libname), self.library_filename (output_libname, lib_type='shared'),
output_dir, output_dir,
libraries, libraries,
library_dirs, library_dirs,
@ -320,8 +320,10 @@ class UnixCCompiler (CCompiler):
def find_library_file (self, dirs, lib): def find_library_file (self, dirs, lib):
for dir in dirs: for dir in dirs:
shared = os.path.join (dir, self.shared_library_filename (lib)) shared = os.path.join (
static = os.path.join (dir, self.library_filename (lib)) dir, self.library_filename (lib, lib_type='shared'))
static = os.path.join (
dir, self.library_filename (lib, lib_type='static'))
# We're second-guessing the linker here, with not much hard # We're second-guessing the linker here, with not much hard
# data to go on: GCC seems to prefer the shared library, so I'm # data to go on: GCC seems to prefer the shared library, so I'm