[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why is libgtk1.2-1.2.3-1 bloating dynamically linked binaries (was: Why is libc-2.1.*.so not stripped?)

Nils Rennebarth <nils@ipe.uni-stuttgart.de> writes:

> [1  <text/plain; us-ascii (quoted-printable)>]
> On Mon, Jul 26, 1999 at 02:40:46PM -0700, Joel Klecker wrote:
> > At 21:49 +0200 1999-07-26, Nils Rennebarth wrote:
> > >   Why is the libc DLL not stripped on potato systems? It enlarges *every*
> > >executable (linked dynamically!) by about 100k
> > It is stripped, with --strip-debug. And whether or not a shared 
> > library is stripped does not affect the size of programs linked to it.

> Ok, its not libc that is at fault. I had used the same Makefile and linked
> hello with the same libraries as the gtk application.

> removing -lgdk from the list of libraries reduces the size to reasonable 5k

> What is wrong with libgtk1.2 that it bloats binaries compiled dynamically
> against it? The 1.2.3-0.slink1 version does it right. The 1.2.3-1 version
> bloats the hello world program

  libgtk1.2       1.2.3-1

  # gcc foo.c -s -lgdk
  # ls -l a.out
  -rwx------   1 dunham   gnats        3524 Jul 27 15:18 a.out*

Have you actually run ldd on the program to see if libgdk is being
dynamically linked?  Maybe you're missing the .so file?


Reply to: