how to link python against static sys libs?

Gerhard Häring gh at ghaering.de
Wed Apr 23 15:34:14 EDT 2003


Martin v. Löwis wrote:
> "David McNab" <david at nospam-freenet.org.nz> writes:
>>I'm having a bit of a nightmare trying to build python to link the sys
>>libs (eg glibc) statically.
> 
> I haven't check recently, but I think static libraries are not really
> supported on Linux anymore. The C libraries relies on dynamic loading
> for certain functions (such has netdb), and there is no way to build a
> statically-linked executable that uses these functions.

You could use an alternative libc in this case. Either an older glibc or 
something like dietlibc.

If you manage to build Python against dietlibc, please report back. I'd 
be interested in wether this works.

-- Gerhard





More information about the Python-list mailing list