Create Statically linked python library

Guenther Sohler guenther.sohler at gmail.com
Sun May 21 17:40:10 EDT 2023


Right now my application links python dynamically. That means ldd will show
something like

libpython3.11.so.1.0 => /lib64/libpython3.11.so.1.0 (0x00007fd63c600000)

but i dont like this dependency. ii want to link in python statically.
I'd like to get a file like libpython3.11.a or similar.

For that I have found

https://wiki.python.org/moin/BuildStatically

It describes how to compile python interpreter statically and it only
contains view libs

But I;d like to get a libpython3.11.a instead.

How can i get this ?


Thank you


More information about the Python-list mailing list