mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-32647: Link ctypes extension with libdl. (#5550)
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>
This commit is contained in:
parent
b7b9225831
commit
5bb9692575
2 changed files with 6 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
The ctypes module used to depend on indirect linking for dlopen. The shared
|
||||
extension is now explicitly linked against libdl on platforms with dl.
|
4
setup.py
4
setup.py
|
@ -2005,6 +2005,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 _decimal_ext(self):
|
||||
extra_compile_args = []
|
||||
undef_macros = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue