This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: static size
Brian Gough writes:
> The final size of executable files should be about the same, since the
> linker should only include the .o files that are used by the program.
This is how it works on my system, anyway.
bjg|debian> ld --version
GNU ld 2.9.1
Typical example,
bjg|debian> cd histogram
bjg|debian> gcc -static -I .. gsl-histogram.c -lgsl -lm
bjg|debian> ls -l a.out
-rwxrwxr-x 1 bjg bjg 269691 Jun 26 21:40 a.out*
bjg|debian> strip a.out
bjg|debian> ls -l a.out
-rwxrwxr-x 1 bjg bjg 170384 Jun 26 21:40 a.out*
regards
Brian