Prefer dynamic linking for Python in vim when +python (#17870)

Previously the python package for vim used static linking, and depending
on what system libraries were available and linked against could cause
symbol conflicts for python leading to segfaults in loading c modules in
the standard library (i.e. heapq).  This patch address this issue by
dynamically linking them.
This commit is contained in:
Robert Underwood 2020-08-04 10:22:53 -07:00 committed by GitHub
parent b35b950ee2
commit 4eb3558d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,11 +92,11 @@ def configure_args(self):
if '+python' in spec:
if 'python@3:' in self.spec:
configure_args.append("--enable-python3interp=yes")
configure_args.append("--enable-python3interp=dynamic")
configure_args.append("--enable-pythoninterp=no")
else:
configure_args.append("--enable-python3interp=no")
configure_args.append("--enable-pythoninterp=yes")
configure_args.append("--enable-pythoninterp=dynamic")
else:
configure_args.append("--enable-python3interp=no")