How can I build python 3.12 from source while statically linking at least libc but ideally all dependencies?
So far I have tried setting LDFLAGS="-static" before running the configure script and changing the Setup file (although I'm not sure I did it correctly).