bpo-31904: remove libnet dependency from detect_socket() for VxWorks (GH-23394)

Previously on VxWorks compiling socket extension module needs the libnet to link. Now VxWorks has moved the replied functions to libc. So removing libnet from setup.py.
This commit is contained in:
pxinwr 2020-11-29 06:14:16 +08:00 committed by GitHub
parent 6a273fdc2a
commit 00a6568ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -0,0 +1 @@
remove libnet dependency from detect_socket() for VxWorks

View File

@ -1132,11 +1132,7 @@ class PyBuildExt(build_ext):
def detect_socket(self):
# socket(2)
kwargs = {'depends': ['socketmodule.h']}
if VXWORKS:
if not self.compiler.find_library_file(self.lib_dirs, 'net'):
return
kwargs['libraries'] = ['net']
elif MACOS:
if MACOS:
# Issue #35569: Expose RFC 3542 socket options.
kwargs['extra_compile_args'] = ['-D__APPLE_USE_RFC_3542']