c++/7769: using static libraries sometimes loses static initialization

Wolfgang Bangerth bangerth@ticam.utexas.edu
Fri Dec 20 08:41:00 GMT 2002


On Thu, 19 Dec 2002, Hal Black wrote:

> >     This is not a bug. When you want that a particular 
> >     object file (possibly within an archive) is pulled into you
> >     executable for sure, then you have to reference an object
> >     inside it.
> 
> This is a bug.
> [...]
> Correct, the compiler is fine, it is the linker that is not working 
> correctly under the circumstances described above.

This is just how Unix has worked forever. If you want that changed, file a 
report with the binutils people, but I think this is just how it is.

W.

-------------------------------------------------------------------------
Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth




More information about the Gcc-bugs mailing list