Bug#2963: tin is statically linked
On Mon, 13 May 1996, Kenny Wickstrom wrote:
> > after recompilation without -g, binary size shrinks down to:
> > -rwxr-xr-x 1 root root 252217 May 11 01:06 /usr/bin/tin
> (I work almost the same hours as you.:-))
work? is that what you call it? I thought it was play :-).
> Here is my line:
> -rwxr-xr-x 1 root root 554273 May 13 00:29 /usr/bin/tin
That's a big size difference.
I didn't do anything else to the Makefile, just commented out the -g.
I might have also changed the DEBUG= line. Can't remember. Anyway,
check out the DEBUG= lines above the COPTS line. Mine just have
DEBUG = # -DDEBUG -DDEBUG_NEWSRC -DPROFILE
DEBUG = #-g -DDEBUG
i.e. DEBUG is defined but empty. Hmmm. Actually, they should really be
commented out altogether, like:
# DEBUG = # -DDEBUG -DDEBUG_NEWSRC -DPROFILE
# DEBUG = #-g -DDEBUG
otherwise DEBUG will actually be defined (same effect as -DDEBUG)
I just commented those lines out and recompiled, with the same result.
here's some more info on my binary.
$ ls -l tin
-rwxr-xr-x 1 root root 252217 May 13 16:03 tin
$ file tin
tin: ELF 32-bit LSB executable, Intel 80386, version 1, stripped
$ ldd tin
libncurses.so.3.0 => /lib/libncurses.so.3.0
libc.so.5 => /lib/libc.so.5.2.18
> I am using gcc 2.7.2-5 and libc5 5.2.18-1. If you have any ideas on how
> I can make it better, I'd be happy to hear them.
ii binutils 2.6-2 The GNU assembler and binary utilities (ELF
ii gcc 2.7.2-8 The GNU C compiler (ELF version).
ii libc5 5.2.18-6 The Linux C library version 5 (run-time libr
ii libc5-dev 5.2.18-6 The Linux C library version 5 (development f
Maybe it's the new libc5-dev? Or maybe my ld in binutils is newer and
better than yours?
Try upgrading your development stuff (at least libc5-dev, gcc, and
binutils...preferably all the dev tools and libraries) to the latest