0

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).

2
  • 1
    This is not easy task. I'd look into this project for start: github.com/indygreg/python-build-standalone Commented Dec 7, 2023 at 14:14
  • Yea, I've trying to do this for days with no luck. The project is interesting, but it's not what I'm looking for. The produced binaries still depend on the system's libc, even if it's an old one. Thanks anyway. Commented Dec 7, 2023 at 17:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.