]> granicus.if.org Git - python/commitdiff
Fix to call 'library_filename()' instead of the non-existent
authorGreg Ward <gward@python.net>
Thu, 27 Jul 2000 01:23:19 +0000 (01:23 +0000)
committerGreg Ward <gward@python.net>
Thu, 27 Jul 2000 01:23:19 +0000 (01:23 +0000)
'shared_library_filename()'.

Lib/distutils/unixccompiler.py

index 4772e1a8b52d318a2a3e9bce075c889ede37bf29..799560c3963033ea35a21f0924c67b5d4b262c0e 100644 (file)
@@ -205,7 +205,7 @@ class UnixCCompiler (CCompiler):
 
         self.link_shared_object (
             objects,
-            self.shared_library_filename (output_libname),
+            self.library_filename (output_libname, lib_type='shared'),
             output_dir,
             libraries,
             library_dirs,
@@ -320,8 +320,10 @@ class UnixCCompiler (CCompiler):
     def find_library_file (self, dirs, lib):
 
         for dir in dirs:
-            shared = os.path.join (dir, self.shared_library_filename (lib))
-            static = os.path.join (dir, self.library_filename (lib))
+            shared = os.path.join (
+                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
             # data to go on: GCC seems to prefer the shared library, so I'm