Re: Building Python statically on linux

2007-12-28 Thread Micah Elliott
On Dec 28, 5:44 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > Can you work on the topic and write a small howto for your wiki > (http://wiki.python.org/moin/)? Good idea. I've created a placeholder (with what I know so far, not much) to track this: http://wiki.python.org/moin/BuildStatica

Re: Building Python statically on linux

2007-12-28 Thread Christian Heimes
Micah Elliott wrote: > 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

Re: Building Python statically on linux

2007-12-27 Thread Micah Elliott
On Dec 27, 8:32 am, Zentrader <[EMAIL PROTECTED]> 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 (th

Re: Building Python statically on linux

2007-12-27 Thread Zentrader
On Dec 27, 8:21 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > Micah Elliott wrote: > > I'm ./configure-ing with "--disable-shared" (because this must mean > > "enable static", right?) I think you can just add -static to the gcc Flag line in the makefile. "man gcc" should also be helpful but t

Re: Building Python statically on linux

2007-12-27 Thread Christian Heimes
Micah Elliott wrote: > I'm ./configure-ing with "--disable-shared" (because this must mean > "enable static", right?), and (based on some other posts here) tried > adding "*static*" near the top of Modules/Setup. I'd like to see ldd > tell me "not a dynamic executable", but alas, it's presently: