Python patch to install a shared library
Dima Dorfman
dima at trit.org
Fri Mar 5 03:47:33 PST 2004
Hye-Shik Chang <perky at 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.
More information about the freebsd-python
mailing list