Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2004 11:47:23 +0000
From:      Dima Dorfman <dima@trit.org>
To:        Hye-Shik Chang <perky@i18n.org>
Cc:        python@FreeBSD.org
Subject:   Re: Python patch to install a shared library
Message-ID:  <20040305114723.GD15971@trit.org>
In-Reply-To: <20040305101837.GA78274@i18n.org>
References:  <20040305101837.GA78274@i18n.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hye-Shik Chang <perky@i18n.org> wrote:
> Per requested by many people, I made a patch to make python port
> to install not only static library but also shared library and its
> interpreter frontend.  This obsoletes BUILD_SHARED option and the
> port doesn't build PIC binary or library even for amd64 and ia64
> anymore.  This means that you need to change linking with not static
> but shared library if you need to embed python into your shared
> library.

This looks good to me, thanks!  (I'll try it tomorrow.)

I mentioned this in my previous message, but maybe someone else on the
list has comments.  The normal Python distribution puts libpython.so
into $PREFIX/lib/pythonX.Y/config, and that's where some packages
expected it to be (e.g., PostgreSQL's PL/Python (I made a port for it)
normally expects it to be there).  It's easy enough to change those
packages to look in $PREFIX/lib, but I think a symlink from the config
directory to the real libpython.so might be a good idea.  I don't
insist on this--just an idea :-).

Thanks again!

Dima.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040305114723.GD15971>