[Python-Dev] Freeze and shared modules
Martin v. Loewis
02 Apr 2002 19:43:36 +0200
"M.-A. Lemburg" <firstname.lastname@example.org> writes:
> Does anyone know which compiler/linker options have to be specified
> to make frozen Python interpreters correctly import shared modules ?
LINKFORSHARED should be the right set of options.
> Many of the mxCGIPython are running into this problem (the default
> settings in Python or freeze seem to be wrong on this account) and
> it got even worse with Python 2.2 where even the standard modules
> are built shared rather than statically linked.
Yes, building all extension modules as shared libraries is evil for
freezing applications. I wish Linux distributors would recognize this
and write proper Setup files, instead of relying on the default