summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Underwood <robertu94@users.noreply.github.com>2020-08-04 10:22:53 -0700
committerGitHub <noreply@github.com>2020-08-04 12:22:53 -0500
commit4eb3558d203f39a7cf7a1f5847163f51fe91cd28 (patch)
treeb1eafad12ca7202b0ede213ec6d37b8800ce783b
parentb35b950ee2b767a0fac9ee3afefa62dedeed6cce (diff)
downloadspack-4eb3558d203f39a7cf7a1f5847163f51fe91cd28.tar.gz
spack-4eb3558d203f39a7cf7a1f5847163f51fe91cd28.tar.bz2
spack-4eb3558d203f39a7cf7a1f5847163f51fe91cd28.tar.xz
spack-4eb3558d203f39a7cf7a1f5847163f51fe91cd28.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/vim/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/vim/package.py b/var/spack/repos/builtin/packages/vim/package.py
index d1533cfe52..722fe46a67 100644
--- a/var/spack/repos/builtin/packages/vim/package.py
+++ b/var/spack/repos/builtin/packages/vim/package.py
@@ -92,11 +92,11 @@ class Vim(AutotoolsPackage):
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")