diff options
author | serge-sans-paille <serge.guelton@telecom-bretagne.eu> | 2019-12-04 16:02:57 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@python.org> | 2019-12-04 16:02:57 (GMT) |
commit | 7105319ada2e663659020cbe9fdf7ff38f421ab2 (patch) | |
tree | c01a6613af57aa0eeed510aaa21735e959196f13 /Misc/NEWS.d | |
parent | ac0e1c2694bc199dbd073312145e3c09bee52cc4 (diff) | |
download | cpython-7105319ada2e663659020cbe9fdf7ff38f421ab2.zip cpython-7105319ada2e663659020cbe9fdf7ff38f421ab2.tar.gz cpython-7105319ada2e663659020cbe9fdf7ff38f421ab2.tar.bz2 |
bpo-38634: Allow non-apple build to cope with libedit (GH-16986)
The readline module now detects if Python is linked to libedit at runtime
on all platforms. Previously, the check was only done on macOS.
If Python is used as a library by a binary linking to libedit, the linker
resolves the rl_initialize symbol required by the readline module against
libedit instead of libreadline, which leads to a segfault.
Take advantage of the existing supporting code to have readline module being
compatible with both situations.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-12-04-15-56-28.bpo-38634.pq0ZWa.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-12-04-15-56-28.bpo-38634.pq0ZWa.rst b/Misc/NEWS.d/next/Library/2019-12-04-15-56-28.bpo-38634.pq0ZWa.rst new file mode 100644 index 0000000..d60c317 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-12-04-15-56-28.bpo-38634.pq0ZWa.rst @@ -0,0 +1,2 @@ +The :mod:`readline` module now detects if Python is linked to libedit at runtime +on all platforms. Previously, the check was only done on macOS. |