Skip to content

Commit

Permalink
Prevent building shared objects in distutils.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell175 committed Feb 26, 2024
1 parent 05836d3 commit c21ec4d
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Lib/distutils/ccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,7 @@ def link_shared_lib(self,
extra_postargs=None,
build_temp=None,
target_lang=None):
self.link(CCompiler.SHARED_LIBRARY, objects,
self.library_filename(output_libname, lib_type='shared'),
output_dir,
libraries, library_dirs, runtime_library_dirs,
export_symbols, debug,
extra_preargs, extra_postargs, build_temp, target_lang)
raise NotImplementedError


def link_shared_object(self,
Expand All @@ -710,11 +705,7 @@ def link_shared_object(self,
extra_postargs=None,
build_temp=None,
target_lang=None):
self.link(CCompiler.SHARED_OBJECT, objects,
output_filename, output_dir,
libraries, library_dirs, runtime_library_dirs,
export_symbols, debug,
extra_preargs, extra_postargs, build_temp, target_lang)
raise NotImplementedError


def link_executable(self,
Expand Down

0 comments on commit c21ec4d

Please sign in to comment.