diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index cb9da68dd91..a0464b4ea08 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -178,10 +178,9 @@ def build_extensions (self, extensions): objects.extend (extra_objects) libraries = build_info.get ('libraries') library_dirs = build_info.get ('library_dirs') - ext_filename = self.extension_filename (extension_name) self.compiler.link_shared_object (objects, ext_filename, - libraries, library_dirs) + libraries, library_dirs, build_info) # build_extensions ()