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:
parent
b35b950ee2
commit
4eb3558d20
1 changed files with 2 additions and 2 deletions
|
@ -92,11 +92,11 @@ def configure_args(self):
|
||||||
|
|
||||||
if '+python' in spec:
|
if '+python' in spec:
|
||||||
if 'python@3:' in self.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")
|
configure_args.append("--enable-pythoninterp=no")
|
||||||
else:
|
else:
|
||||||
configure_args.append("--enable-python3interp=no")
|
configure_args.append("--enable-python3interp=no")
|
||||||
configure_args.append("--enable-pythoninterp=yes")
|
configure_args.append("--enable-pythoninterp=dynamic")
|
||||||
else:
|
else:
|
||||||
configure_args.append("--enable-python3interp=no")
|
configure_args.append("--enable-python3interp=no")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue