Building Python statically on linux

Micah Elliott mdelliot at gmail.com
Thu Dec 27 16:29:09 EST 2007


On Dec 27, 8:32 am, Zentrader <zentrad... at gmail.com> wrote:

> I think you can just add -static to the gcc Flag line in the
> makefile.

Doing that (or CFLAGS=-static, or LDFLAGS=-static, or other Makefile
tweaks) gets me linker errors.  Sounds like there's not a simple
prescribed means to do this (that anyone has documented).  So now I'm
open to hearing about other hacks people have done to get this to
work.  (Hopefully a config weenie heard my plea for --enable-all-
static)

--
Micah



More information about the Python-list mailing list