Skip to content

Commit ad006b9

Browse files
committed
Prevent building shared objects in distutils.
1 parent cc17e0e commit ad006b9

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Lib/distutils/ccompiler.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,7 @@ def link_shared_lib(self,
689689
extra_postargs=None,
690690
build_temp=None,
691691
target_lang=None):
692-
self.link(CCompiler.SHARED_LIBRARY, objects,
693-
self.library_filename(output_libname, lib_type='shared'),
694-
output_dir,
695-
libraries, library_dirs, runtime_library_dirs,
696-
export_symbols, debug,
697-
extra_preargs, extra_postargs, build_temp, target_lang)
692+
raise NotImplementedError
698693

699694

700695
def link_shared_object(self,
@@ -710,11 +705,7 @@ def link_shared_object(self,
710705
extra_postargs=None,
711706
build_temp=None,
712707
target_lang=None):
713-
self.link(CCompiler.SHARED_OBJECT, objects,
714-
output_filename, output_dir,
715-
libraries, library_dirs, runtime_library_dirs,
716-
export_symbols, debug,
717-
extra_preargs, extra_postargs, build_temp, target_lang)
708+
raise NotImplementedError
718709

719710

720711
def link_executable(self,

0 commit comments

Comments
 (0)