Re: Tk and huge executables

Guido.van.Rossum@cwi.nl
Tue, 07 Feb 1995 11:29:45 +0100

> When installing Python, I compiled it with tkinter. It didn't want to
> compile as a shared library, so I included it into the executable -- and
> thus also had to include the whole Tk library, which is about 5 megs on
> this system. Is this normal? Is there any way to keep Tk from bloating
> out the exectuble like that? This is on an HP-UX v9 system.

I don't know anything about HP systems, but I suspect that the X
libraries are also statically linked. How big is Tk's "wish" binary?
(Also consider stripping the binary -- see strip(1). If any kind of
symbol table is left in it usually takes up a lot of space...)

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>