summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/unixccompiler.py
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-07-27 01:23:19 (GMT)
committerGreg Ward <gward@python.net>2000-07-27 01:23:19 (GMT)
commit7499847c5327767575e3344b1452e91418ec5a98 (patch)
treef407714985be99c2061e3dd53772e72ccda63901 /Lib/distutils/unixccompiler.py
parent53c1bc3f9bf4d83f01e5dc8c228379ae525a2cbb (diff)
downloadcpython-7499847c5327767575e3344b1452e91418ec5a98.zip
cpython-7499847c5327767575e3344b1452e91418ec5a98.tar.gz
cpython-7499847c5327767575e3344b1452e91418ec5a98.tar.bz2
Fix to call 'library_filename()' instead of the non-existent
'shared_library_filename()'.
Diffstat (limited to 'Lib/distutils/unixccompiler.py')
-rw-r--r--Lib/distutils/unixccompiler.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index 4772e1a..799560c 100644
--- a/Lib/distutils/unixccompiler.py
+++ b/Lib/distutils/unixccompiler.py
@@ -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