[issue46854] Failed to compile static python3.7.12

aprpp report at bugs.python.org
Fri Feb 25 22:30:45 EST 2022


aprpp <916495294 at qq.com> added the comment:

The platform i build python3.7.12 on is Ubuntu18.04, I would like to know how the modules I fail to build, like _ctypes, should be added in Modules/Setup.
The steps for my build are:
1.tar -zxvf Python-3.7.12.tgz && cd Python-3.7.12 
2.edit Modules/Setup, add modules build definitions in the Modules/Setup
3../configure LDFLAGS="-static" --disable-shared --prefix=/home/python3
4.make LDFLAGS="-static" LINKFORSHARED=" "

How to build python3.7 statically without relying on editing Modules/Setup?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46854>
_______________________________________


More information about the Python-bugs-list mailing list