This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: static size


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.

You can use 'nm' on the executable to see what symbols are being
included.  If the whole library is included then that would indicate a
problem that would be worth knowing about.

Diego Saravia writes:
 > 
 > 
 >       I finally be able to do static using autoconf and automake 
 >      Thanks to all people that help me.
 > 
 >       I like to compile static because you do not have to distribute or
 > compile
 >       libraries in other machines
 > 
 >       When I use static in 0.6 the executable is huge,
 >       in 0.5 it was smaller
 >       When gcc links a library, puts all the library code in the executable?
 >       Is there a way to change that, no using dinamic, so gcc puts only the
 > code
 >       that is used?
 > 
 >       Is really easy to work with only one gsl library file, but ...
 > 
 >       I have little experience with gcc, sorry if I am doing some silly
 > error.
 > --
 > Diego Saravia
 > dsa@unsa.edu.ar
 > 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]