[Bf-committers] Linking problems with Python 2.3 (possible solution)
Willian Padovani Germano
Wed, 3 Sep 2003 00:27:42 -0300
About the problem when linking with Python 2.3 under linux, from the Python
Building a shared libpython
Starting with Python 2.3, the majority of the interpreter can be built
into a shared library, which can then be used by the interpreter
executable, and by applications embedding Python. To enable this feature,
configure with --enable-shared.
If you enable this feature, the same object files will be used to create
a static library. In particular, the static library will contain object
files using position-independent code (PIC) on platforms where PIC flags
are needed for the shared library.
My version is configured with --enable-shared --pydebug and Blender runs
fine. Of course --pydebug is not needed unless you enjoy debug info (total
reference counts) coming out of the python interpreter all the time.
There was another problem that made Blender crash on startup, but it should
be fixed now (and without using #ifdef's, just had to add a definition to