Accepting request 90166 from home:elvigia:branches:editors

Intended for 12.1 and factory, plz forward accordingly.

- vim-enhanced,gvim: Never ever link against static libpython
  this happends because %{_libdir}/python$vesion/config is
  searched first and picks libpython.a instead of .so ...

OBS-URL: https://build.opensuse.org/request/show/90166
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=66
This commit is contained in:
Ismail Dönmez
2011-11-06 08:57:45 +00:00
committed by Git OBS Bridge
parent a2ff8b4189
commit 071ee1d47a
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- src/configure.in.orig
+++ src/configure.in
@@ -881,7 +881,7 @@ eof
if test "${vi_cv_var_python_version}" = "1.4"; then
vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
else
- vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
+ vi_cv_path_python_plibs="-lpython${vi_cv_var_python_version}"
fi
vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
dnl remove -ltermcap, it can conflict with an earlier -lncurses