diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-02-25 04:07:36 -0800 |
|---|---|---|
| committer | Christian Heimes <christian@python.org> | 2018-02-25 13:07:36 +0100 |
| commit | 192bff4e2d196b8933829923ca1db77d8dee67e2 (patch) | |
| tree | 650ca456eef64640b628c52058531ced83bf3823 /setup.py | |
| parent | 48707a1baf4fd553fbc4516d9080cb3968af21aa (diff) | |
| download | cpython-git-192bff4e2d196b8933829923ca1db77d8dee67e2.tar.gz | |
[3.6] bpo-32647: Link ctypes extension with libdl. (GH-5550) (#5875)
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 5bb9692575f10f4a7c7f1c2c0c70956baf6d5c23)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2089,6 +2089,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 = [] |
