gcc -lX11 and binary size



Hello,

I've recently started dealing with X applications and I've noticed that
compiling with -lX11 gives me absolutely huge binaries. On Linux/i386
and X11R6 4.0.1 a file containing only main(){} is compiled to a 900kB
binary when the -lX11 switch is used. Stripping only reduces file size
to 800kB.

As `gtk-config --libs --cflags` contains -lX11 and a compile without
-lX11 gives very small (and perfect) binaries, I don't know how to
proceed.

Could someone please enlighten me?

Thank you.

Best regards,

Flavio Ribeiro







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