Unverified Kaydet (Commit) 4bb9b9ae authored tarafından Christian Heimes's avatar Christian Heimes Kaydeden (comit) GitHub

[2.7] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5877)

The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.

Signed-off-by: Christian Heimes <christian@python.org>.
(cherry picked from commit 5bb96925)
Co-authored-by: 's avatarChristian Heimes <christian@python.org>
üst 3d87f4cf
The ctypes module used to depend on indirect linking for dlopen. The shared
extension is now explicitly linked against libdl on platforms with dl.
......@@ -2149,6 +2149,10 @@ class PyBuildExt(build_ext):
ext.libraries.append(ffi_lib)
self.use_system_libffi = True
if sysconfig.get_config_var('HAVE_LIBDL'):
# for dlopen, see bpo-32647
ext.libraries.append('dl')
def _detect_nis(self, inc_dirs, lib_dirs):
if host_platform in {'win32', 'cygwin', 'qnx6'}:
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment