build a static python executable on linux?
Alexandre Gillet
gillet at scripps.edu
Tue Sep 30 12:42:55 EDT 2003
Thanks for the hints.
But I think it will too much work to do now and not enough time. So I
will probably build my interperter with a older version of glibc so I am
sure it will run on all the linux platform and not only the one using
glibc 2.3
Thanks
Alex
Skip Montanaro wrote:
> Alex> I am able to compile a static interpreter (using -static
> Alex> -static-libgcc) but I can not build the extensions correctly.
>
> You effectively need to transport yourself back in time before distutils
> existed, and modify Modules/Setup (or more correctly, Modules/Setup.local)
> appropriately to define the build commands for all the extension modules you
> want to include in your interpreter. It's a little tedious the first time
> (it will probably take a few iterations to get everything correct), but once
> you get the hang of it, it's easy to do. Use the compile and link commands
> output by distutils to give yourself a head start on -I, -L and -l flags to
> include in your definitions. Many of the commented out definitions are
> probably also close.
>
> If you identify some modules with no commented out build definitions in the
> Setup file, please file a bug report on SourceForge.
>
> Skip
>
>
--
o Alexandre Gillet email: gillet at scripps.edu
/ The Scripps Research Institute,
o Dept. Molecular Biology, MB-5,
\ 10550 North Torrey Pines Road,
o La Jolla, CA 92037-1000, USA.
/ tel: (858) 784-2053
o fax: (858) 784-2860
More information about the Python-list
mailing list