Bug#566842: [Patch] Use Python's BASEMODLIBS for linking

James Vega jamessan at debian.org
Wed May 19 23:48:16 UTC 2010


Bram,

Vim's configure script currently extracts the value of MODLIBS from
Python's config/Makefile as part of the process for determining which
libraries to link against when building if_python.c.

As described below, this is problematic as LOCALMODLIBS (which MODLIBS
includes) is only supposed to be used when building the Python
interpreter.  As such, it may link in extra libraries than are actually
needed for Vim's use of Python.

I've attached Michael Bienia's patch which updates configure.in to use
BASEMODLIBS instead of MODLIBS.

On Mon, Jan 25, 2010 at 03:03:51PM +0100, Michael Bienia wrote:
> Hello,
> 
> vim's configure script uses MODLIBS from python's config/Makefile to
> know to link against which libs. As MODLIBS uses LOCALMODLIBS for it's
> value and as I got told that LOCALMODLIBS shouldn't be used for python
> extensions (I assume this applies here too as vim links against
> libpython2.x like python extensions):
> 
> "LOCALMODLIBS is a macro used to link the python binary against libaries
> needed for the binary. It must not used to link extensions."
> (from Matthias Klose in an Ubuntu bug)

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-modlibs.diff
Type: text/x-diff
Size: 999 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20100519/5f518e93/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20100519/5f518e93/attachment.pgp>


More information about the pkg-vim-maintainers mailing list