]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38634: Allow non-apple build to cope with libedit (GH-16986)
authorserge-sans-paille <serge.guelton@telecom-bretagne.eu>
Wed, 4 Dec 2019 16:02:57 +0000 (17:02 +0100)
committerVictor Stinner <vstinner@python.org>
Wed, 4 Dec 2019 16:02:57 +0000 (17:02 +0100)
commit7105319ada2e663659020cbe9fdf7ff38f421ab2
treec01a6613af57aa0eeed510aaa21735e959196f13
parentac0e1c2694bc199dbd073312145e3c09bee52cc4
 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.
Misc/NEWS.d/next/Library/2019-12-04-15-56-28.bpo-38634.pq0ZWa.rst [new file with mode: 0644]
Modules/readline.c