How to get libpython3.6m.a through python source code

how to get libpython3.6m.a? from python3.6 source code
after entering the python source code directory, execute the following command to get
libpython3.6m.so and libpython3.6m.so.1.0

in / usr/local/lib/.
./configure -prefix=/usr/local --enable-shared CFLAGS=-fPIC
make
make install

because the project needs, how can I get the libpython3.6m.a file?

Mar.06,2021

python source code after downloading make, there is


this unexpectedly no one answered, I will answer, you have already configured prefix=/usr/local, then this file must be in / usr/local/lib or / usr/local/python3.6/lib directory after make install, you only need to search, the address is not fixed, because it is also related to your system configuration.
reference: https://blog.csdn.net/tanmx21.

Menu